Home › Forums › ACF PRO › Change the label for User Field › Reply To: Change the label for User Field
Using this filter you can alter the value that’s displayed in the user field, I don’t think these are documented anywhere but this is the code where they are applied in ACF
$result = apply_filters("acf/fields/user/result", $result, $user, $field, $post_id);
$result = apply_filters("acf/fields/user/result/name={$field['_name']}", $result, $user, $field, $post_id);
$result = apply_filters("acf/fields/user/result/key={$field['key']}", $result, $user, $field, $post_id);
These filters would work just like this filter http://www.advancedcustomfields.com/resources/acf-fields-relationship-result/
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.