Created
April 25, 2018 12:13
-
-
Save nikitasinelnikov/46302171ecf43e7130581dfa5a76850d to your computer and use it in GitHub Desktop.
Display All users not only Authors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wp_dropdown_users_args', 'um_show_all_users', 10, 2 ); | |
function um_show_all_users( $query_args, $r ) { | |
if ( isset( $query_args['who'] ) && 'authors' == $query_args['who'] ) { | |
$query_args['who'] = ''; | |
} | |
return $query_args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment