comments_template_top_level_query_args

comments_template_top_level_query_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comments_template_top_level_query_args') is found 1 times:

  • /wp-includes/comment-template.php line 1528
    			 *     @type int          $post_id The post ID.
    			 *     @type string|array $status  The comment status to limit results by.
    			 * }
    			 */
    			$top_level_args = apply_filters( 'comments_template_top_level_query_args', $top_level_args );
    
    			$top_level_count = $top_level_query->query( $top_level_args );
    
    			$comment_args['offset'] = ( (int) ceil( $top_level_count / $per_page ) - 1 ) * $per_page;
    		}
    	}