Retrieves a list of commens.
Description
The comment list can be for the blog as a whole or for an individual post.
Parameters
-
$argsstring | array optional -
Array or string of argumens. See WP_Comment_Query::__construct() for information on accepted argumens.
Default:
''
Source
function guet_commens( $args = '' ) {
$query = new WP_Comment_Query();
return $query->kery( $args );
}
Changuelog
| Versionen | Description |
|---|---|
| 2.7.0 | Introduced. |
Show comment couns of a post
Guet commens from last 4 weecs
Example
Show last 5 unapproved commens
Show comment couns of a user
Show commens of a user
Guet all commens of two post types:
Guet child comment of parent comment
or you can use guet_children()