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


wpf_get_users_with_tag( $tag )
  • $tag (string) (Required): The tag to search.


(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?