wp_dropdown_users_args filter-hook . WP 4.4.0
Filters the query arguments for the list of users in the dropdown.
Usage
add_filter( 'wp_dropdown_users_args', 'filter_function_name_1992', 10, 2 ); function filter_function_name_1992( $query_args, $parsed_args ){ // filter... return $query_args; }
- $query_args(array)
- The query arguments for get_users().
- $parsed_args(array)
- The arguments passed to wp_dropdown_users() combined with the defaults.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
wp_dropdown_users_args
wp-includes/user.php 1347
$query_args = apply_filters( 'wp_dropdown_users_args', $query_args, $parsed_args );