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.2

apply_filters('comments_template_query_args') is found 1 times:

  • /wp-includes/comment-template.php line 1559
    1555
    1556
    1557
    1558
    1559
    1560
    1561
    1562
    1563
    1564
    1565
    *     @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: