get_users_with_tag()

#Overview

This function returns an array of user IDs who have a specified tag. You can use either a tag ID or label.

#Get all users with the Member tag

$user_ids = wpf_get_users_with_tag( 'Member' );

#Get all users with tag ID 123

$user_ids = wpf_get_users_with_tag( 123 );

Was this helpful?