found_comments_query

found_comments_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('found_comments_query') is found 1 times:

  • /wp-includes/class-wp-comment-query.php line 1013
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
             *
             * @param string           $found_comments_query SQL query. Default 'SELECT FOUND_ROWS()'.
             * @param WP_Comment_Query $comment_query        The `WP_Comment_Query` instance.
             */
            $found_comments_query = apply_filters( 'found_comments_query', 'SELECT FOUND_ROWS()', $this );
     
            $this->found_comments = (int) $wpdb->get_var( $found_comments_query );
        }
    }
     
    /**