comments_list_table_query_args
Filters the arguments for the comment query in the comments list table.
Usage
add_filter( 'comments_list_table_query_args', 'wp_kama_comments_list_table_query_args_filter' ); /** * Function for `comments_list_table_query_args` filter-hook. * * @param array $args An array of get_comments() arguments. * * @return array */ function wp_kama_comments_list_table_query_args_filter( $args ){ // filter... return $args; }
- $args(array)
- An array of get_comments() arguments.
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
comments_list_table_query_args
wp-admin/includes/class-wp-comments-list-table.php 163
$args = apply_filters( 'comments_list_table_query_args', $args );