Hi ! I have a user dropdown field and I've used this filter to return the billing company instead of the username :
function display_company( $label, $field, $user ) {
$billing_company = get_user_meta($user->ID, 'billing_company', true);
return $billing_company ?? $user->display_name;
}
add_filter( 'rwmb_my_field_choice_label', 'display_company', 10, 3 );
It works perfectly fine, but is it possible to order my select dropdown by company alphabetical order ?
Thanks !