found_comments_query

found_comments_query

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('found_comments_query') is found 1 times:

  • /wp-includes/class-wp-comment-query.php line 1004
    			 *
    			 * @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 );
    		}
    	}
    
    	/**