WordPress-Developers-Custom-Fields
WordPress-Developers-Custom-Fields copied to clipboard
Formatting output of 'options_type' => 'users'
When listing users ( 'options_type' => 'users' ), it would be useful to specify the format in which these are listed on the backend. At the moment it shows usernames, which are often somewhat cryptic. Less technically-inclined administrators would no doubt prefer full names (e.g. user_nicename).
I think user_nicename is just a sanitized version of the username. Maybe you're thinking of display_name? That would be better, but it may not be unique, making accurate selection potentially tricky!
I guess the best format would be: display_name [user_nicename] - and sure, it should be easy to add a few variants you can pick from.
I'll flag this as a feature request and get it into the next release.
display_name [user_nicename] sounds ideal. Thanks!