Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nikitasinelnikov/46302171ecf43e7130581dfa5a76850d to your computer and use it in GitHub Desktop.
Save nikitasinelnikov/46302171ecf43e7130581dfa5a76850d to your computer and use it in GitHub Desktop.
Display All users not only Authors
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