Users: Add the default arguments array as a second parameter to the wp_dropdown_users_args
filter, introduced in [34692].
Adjust hook doc descriptions accordingly. See #19867. git-svn-id: https://develop.svn.wordpress.org/trunk@34705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e75f2c024f
commit
0150a52379
@ -924,13 +924,14 @@ function wp_dropdown_users( $args = '' ) {
|
||||
$query_args['fields'] = array( 'ID', 'user_login', $show );
|
||||
|
||||
/**
|
||||
* Filter the arguments for user drop-down arguments before being passed into the query.
|
||||
* Filter the query arguments for the user drop-down.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param array $query_args The default arguments for wp_dropdown_users().
|
||||
* @param array $query_args The query arguments for wp_dropdown_users().
|
||||
* @param array $r The default arguments for wp_dropdown_users().
|
||||
*/
|
||||
$query_args = apply_filters( 'wp_dropdown_users_args', $query_args );
|
||||
$query_args = apply_filters( 'wp_dropdown_users_args', $query_args, $r );
|
||||
|
||||
$users = get_users( $query_args );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user