Make WordPress Core

Changeset 42420


Ignore:
Timestamp:
12/29/2017 06:20:13 PM (7 years ago)
Author:
rachelbaker
Message:

Comments: Introduce filter for the arguments for the comment query in the comments list table.

Add comments_list_table_query_args filter to the Comments List Table.

Props soulseekah, birgire.
Fixes #42997.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r42343 r42420  
    134134            'post_type' => $post_type,
    135135        );
     136
     137        /**
     138         * Filters the arguments for the comment query in the comments list table.
     139         *
     140         * @since 5.0.0
     141         *
     142         * @param array $args An array of get_comments() arguments.
     143         */
     144        $args = apply_filters( 'comments_list_table_query_args', $args );
    136145
    137146        $_comments = get_comments( $args );
Note: See TracChangeset for help on using the changeset viewer.