comments_list_table_query_args filter-hookWP 5.1.0

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

WP_Comments_List_Table::prepare_items()
comments_list_table_query_args
wp-admin/includes/class-wp-comments-list-table.php 163
$args = apply_filters( 'comments_list_table_query_args', $args );

Where the hook is used in WordPress

Usage not found.