Home › Forums › Feature Requests › Usel Field Multisite › Reply To: Usel Field Multisite
You can create a filter for this.
add_filter('acf/fields/user/query/name=your_field_name', 'set_user_blog_id', 10, 3);
function set_user_blog_id($args, $field, $post_id) {
// set blog id in args
$args['blog_id'] = 2;
return $args;
}
I do not believe that get_users() allows you to get users for more than one blog id from what I can see reading the doc https://codex.wordpress.org/Function_Reference/get_users.
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.