Home › Forums › Feature Requests › User Field Documentation Missing › Reply To: User Field Documentation Missing
Yep, I don’t think it has ever existed. I can’t add it but I can give you some information on the field.
The user field returns either an user object that is the same as what is returned by get_userdata() https://codex.wordpress.org/Function_Reference/get_userdata
Or it returns an array that is constructed by using that information
$value = array(
'ID' => $user_id,
'user_firstname' => $wp_user->user_firstname,
'user_lastname' => $wp_user->user_lastname,
'nickname' => $wp_user->nickname,
'user_nicename' => $wp_user->user_nicename,
'display_name' => $wp_user->display_name,
'user_email' => $wp_user->user_email,
'user_url' => $wp_user->user_url,
'user_registered' => $wp_user->user_registered,
'user_description' => $wp_user->user_description,
'user_avatar' => get_avatar( $user_id ),
);
And it returns either a single user or an array of users depending on the “Multiple” setting.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.