ms_sites_list_table_query_args
Filter HookDescription
Filters the arguments for the site query in the sites list table.Hook Information
File Location |
wp-admin/includes/class-wp-ms-sites-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 180 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$args
|
An array of get_sites() arguments. |
Usage Examples
Basic Usage
<?php
// Hook into ms_sites_list_table_query_args
add_filter('ms_sites_list_table_query_args', 'my_custom_filter', 10, 1);
function my_custom_filter($args) {
// Your custom filtering logic here
return $args;
}
Source Code Context
wp-admin/includes/class-wp-ms-sites-list-table.php:180
- How this hook is used in WordPress core
<?php
175 *
176 * @since 4.6.0
177 *
178 * @param array $args An array of get_sites() arguments.
179 */
180 $args = apply_filters( 'ms_sites_list_table_query_args', $args );
181
182 $_sites = get_sites( $args );
183 if ( is_array( $_sites ) ) {
184 update_site_cache( $_sites );
185
PHP Documentation
<?php
/**
* Filters the arguments for the site query in the sites list table.
*
* @since 4.6.0
*
* @param array $args An array of get_sites() arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-ms-sites-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.