Is there a way to search for registrants who do not have certain assigned roles?
All of my users will be “Subscribers” but they also have an anniversary role (ie: 07_jul). I am trying to find an easy way to identify any “Subscribers” without those additional roles.
As this isn’t an issue with Event Espresso we wouldn’t provide support for this but I’ve seen something similar before so can comment a little on this.
I’m not sure I agree with using an additional role for this vs add a capability onto the user user but that’s another story.
Officially the WordPress UI doesn’t allow for users to have multiple roles, but within the database it is possible.
To do what you are requesting here you could use a meta_query, like so:
The support post ‘Role search on users by "not equal to"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.