On this page
apply_filters( 'found_comments_query', string $found_comments_query, WP_Comment_Query $comment_query )
Filters the query used to retrieve found comment count.
Parameters
$found_comments_querystring-
SQL query. Default 'SELECT FOUND_ROWS()'.
$comment_queryWP_Comment_Query-
The
WP_Comment_Queryinstance.
Source
File: wp-includes/class-wp-comment-query.php. View all references
$found_comments_query = apply_filters( 'found_comments_query', 'SELECT FOUND_ROWS()', $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Comment_Query::set_found_comments() wp-includes/class-wp-comment-query.php | Populates found_comments and max_num_pages properties for the current query if the limit clause was used. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/found_comments_query