ms_sites_list_table_query_args filter-hookWP 4.6.0

Filters the arguments for the site query in the sites list table.

Usage

add_filter( 'ms_sites_list_table_query_args', 'wp_kama_ms_sites_list_table_query_args_filter' );

/**
 * Function for `ms_sites_list_table_query_args` filter-hook.
 * 
 * @param array $args An array of get_sites() arguments.
 *
 * @return array
 */
function wp_kama_ms_sites_list_table_query_args_filter( $args ){

	// filter...
	return $args;
}
$args(array)
An array of get_sites() arguments.

Changelog

Since 4.6.0 Introduced.

Where the hook is called

WP_MS_Sites_List_Table::prepare_items()
ms_sites_list_table_query_args
wp-admin/includes/class-wp-ms-sites-list-table.php 175
$args = apply_filters( 'ms_sites_list_table_query_args', $args );

Where the hook is used in WordPress

Usage not found.