WordPress filter hook · part of WordPress core

users_list_table_query_args

A WordPress core filter that 6 plugins also fire themselves, running on 330+ sites between them.

“Filters the query arguments used to retrieve users for the current users list table.”

How to use users_list_table_query_args

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'users_list_table_query_args', function( $args ) {
	// Change $args here.
	return $args;
}, 10, 1 );

Argument names come from Segurium's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

6 plugins that fire users_list_table_query_args

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Segurium icon Segurium200+ installs apply_filters( 'users_list_table_query_args', $args ) includes/class-segurium-account-lock.php:197
  2. Court Reservation icon Court Reservation80+ installs apply_filters( 'users_list_table_query_args', $args ) admin/class-courtres-users.php:97
  3. Moatline Malware Scanner icon Moatline Malware Scanner40+ installs apply_filters( 'users_list_table_query_args', array( 'role' => 'administrator', 'number' => 500, 'count_total' => false ) ) includes/scanner.php:1795
  4. YOOAdmin icon YOOAdmin10+ installs apply_filters( 'users_list_table_query_args', $args ) includes/core/network-users.php:327
  5. ARACNE Security icon ARACNE SecurityFewer than 10 installs apply_filters( 'users_list_table_query_args', ['role' => 'administrator'] ) includes/class-scanner.php:712
  6. Relvato icon RelvatoFewer than 10 installs apply_filters( 'users_list_table_query_args', array( 'include' => $ids, 'number' => 500, 'count_total' => false ) ) relvato.php:1904

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.