WordPress-Developers-Custom-Fields icon indicating copy to clipboard operation
WordPress-Developers-Custom-Fields copied to clipboard

Formatting output of 'options_type' => 'users'

Open tomvdv opened this issue 13 years ago • 2 comments

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).

tomvdv avatar Feb 29 '12 11:02 tomvdv

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.

gyrus avatar Feb 29 '12 12:02 gyrus

display_name [user_nicename] sounds ideal. Thanks!

tomvdv avatar Feb 29 '12 12:02 tomvdv