Skip to content

Instantly share code, notes, and snippets.

@anthonysbrown
Created January 21, 2023 19:24
Show Gist options
  • Save anthonysbrown/4bba377a57ea399aab79a96d7d21e439 to your computer and use it in GitHub Desktop.
Save anthonysbrown/4bba377a57ea399aab79a96d7d21e439 to your computer and use it in GitHub Desktop.
Smarty pants plugins select2 dropdown userse
<?php
add_filter('spcdm/premium/select_user/query', function($users){
$users = get_users( array(
'meta_key' => 'first_name',
'orderby' => 'meta_value',
'order' => 'ASC'
) );
return $users;
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment