Just added a Filter for that custom field `
add_filter(‘acf/fields/user/query/name=customfieldname’, ‘acf_refernt_field_filter’, 10, 3);
function acf_refernt_field_filter( $args, $field, $post )
// modify get users args of that field
$args[‘role’] = ‘my-custom-user-role’;
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users