comments_clauses filter-hookWP 3.1.0

Filters the comment query clauses.

Usage

add_filter( 'comments_clauses', 'wp_kama_comments_clauses_filter' );

/**
 * Function for `comments_clauses` filter-hook.
 * 
 * @param string[] $clauses An associative array of comment query clauses.
 *
 * @return string[]
 */
function wp_kama_comments_clauses_filter( $clauses ){

	// filter...
	return $clauses;
}
$clauses(string[])
An associative array of comment query clauses.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

WP_Comment_Query::get_comment_ids()
comments_clauses
wp-includes/class-wp-comment-query.php 931
$clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) );

Where the hook is used in WordPress

Usage not found.