#Overview
This function returns an array of user IDs that have a specified tag. You can use either a tag ID or a label.
#Parameters
wpf_get_users_with_tag( $tag )
$tag
(string) (Required): The tag to search.
#Return
(array) $user_ids
the user IDs with the tag.
#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?
Let us know if you liked the post. That’s the only way we can improve.