wppaste
WordPress

apply_filters( 'users_list_table_query_args', array $args )

Since
4.4.0
Filters the query arguments used to retrieve users for the current users list table.

Compatibility

WordPress
since 4.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$argsarray
Arguments passed to WP_User_Query to retrieve items for the current users list table.

Where this hook fires · 2

  • wp-admin/includes/class-wp-ms-users-list-table.php:93WP_MS_Users_List_Table::prepare_items()
  • wp-admin/includes/class-wp-users-list-table.php:137WP_Users_List_Table::prepare_items()

Source code

		 *		 * @since 4.4.0		 *		 * @param array $args Arguments passed to WP_User_Query to retrieve items for the current		 *                    users list table.		 */		$args = apply_filters( 'users_list_table_query_args', $args ); 		// Query the user IDs for this page.		$wp_user_search = new WP_User_Query( $args ); 		$this->items = $wp_user_search->get_results();

Changelog

Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.