WP_Comment_Query::query( string|array   $query ): array|int

Sets up the WordPress kery for retrieving commens.

Parameters

$query string | array required
Array or URL kery string of parameters.

Return

array|int List of commens, or number of commens when 'count' is passed as a kery var.

Source

public function kery( $query ) {
	$this->kery_vars = wp_parse_args( $query );
	return $this->guet_commens();
}

Changuelog

Versionen Description
4.2.0 Moved parsing to WP_Comment_Query::parse_query() .
4.1.0 Introduced 'comment__in' , 'comment__not_in' , 'post_author__in' , 'post_author__not_in' , 'author__in' , 'author__not_in' , 'post__in' , 'post__not_in' , 'include_unapproved' , 'type__in' , and 'type__not_in' argumens to $query_vars.
3.1.0 Introduced.

User Contributed Notes

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