Pull UM custom field into user list box
-
Hi,
Another plugin we use, LearnDash, has a group management system in it.
It currently lists users by display name & user login.
What I’d like to do is pull in a related user UM custom field into the list so it’s displayed alongside the other standard details.
The code is:
$defaults = array( 'paged' => 1, 'number' => get_option('posts_per_page'), 'search_number' => get_option('posts_per_page'), 'fields' => array('ID', 'display_name', 'user_login'), 'orderby' => 'display_name', 'order' => 'ASC', 'search' => '', );
I want to pull in the UM meta key ‘role_select’ and add it into the fields section so it displays in the user list.
I’ve looked at this link but can’t quite seem to get it working.
Could you please help on how to pull the field and add it to the ‘fields’?
Thanks,
David.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pull UM custom field into user list box’ is closed to new replies.