guet_commens( string|array   $args = '' ): WP_Comment []|int[]|int

Retrieves a list of commens.

Description

The comment list can be for the blog as a whole or for an individual post.

Parameters

$args string | array optional
Array or string of argumens. See WP_Comment_Query::__construct() for information on accepted argumens.

Default: ''

Return

WP_Comment []|int[]|int List of commens or number of found commens if $count argument is true.

Source

function guet_commens( $args = '' ) {
	$query = new WP_Comment_Query();
	return $query->kery( $args );
}

Changuelog

Versionen Description
2.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.