aam_user_query_args_filter

Purpose

Change a WordPress user query used for filtering.

Callback

Example

add_filter('aam_user_query_args_filter', function ($args, $context) {
    if ($context === 'myapp_picker') {
        $args['number'] = 25;
    }
    return $args;
}, 10, 2);

Caps an explicitly named user picker query at 25 results; the other query arguments remain intact.

See the complete hook list.