Filter hook 'found_comments_query'

in WP Core File wp-includes/class-wp-comment-query.php at line 1013

Description

Filters the query used to retrieve found comment count.

Occurrences

Filename Line Number
wp-includes/class-wp-comment-query.php 1013

Parameters

Type Name Description
string $found_comments_query SQL query. Default 'SELECT FOUND_ROWS()'.
WP_Comment_Query $comment_query The `WP_Comment_Query` instance.

PHP Doc

/**
			 * Filters the query used to retrieve found comment count.
			 *
			 * @since 4.4.0
			 *
			 * @param string           $found_comments_query SQL query. Default 'SELECT FOUND_ROWS()'.
			 * @param WP_Comment_Query $comment_query        The `WP_Comment_Query` instance.
			 */