comments_template_query_args

comments_template_query_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comments_template_query_args') is found 1 times:

  • /wp-includes/comment-template.php line 1559
    	 *     @type int          $offset                    Comment offset.
    	 *     @type int          $number                    Number of comments to fetch.
    	 * }
    	 */
    	$comment_args = apply_filters( 'comments_template_query_args', $comment_args );
    
    	$comment_query = new WP_Comment_Query( $comment_args );
    	$_comments     = $comment_query->comments;
    
    	// Trees must be flattened before they're passed to the walker.
    	if ( $comment_args['hierarchical'] ) {
    

See this hook used in plugins: