Role condition completely confusing
-
Hi there.
I am overwhelmingly confused by trying to set conditions for events based on roles. Let’s take an example.
I want points to be awarded to a user when they comment IF they are a subscriber OR a contributor. So I would think to set it up as follows (image reference: https://imgur.com/pSTp6hh):
Award to
Comment > AuthorConditions
Comment ? Author ? Roles
Contains
Minimum: 1 (meets minimum of 1 role below?)
Maximum: 2 (meets maximum of 2 role below?)Conditions
Role Equals Subscriber
Role Equals ContributorIf I set minimum to 0, EVERY user type is awarded points for commenting.
If I set minimum to 1, NO points are awarded regardless of role.What is the point of the Contains integers and conditions for roles if the above settings don’t do anything? I just want to know how to do a user OR operator which I can’t seem to make happen.
The only other way i can think to do it is to add a new reaction for each user type (ie: create “Comment on a post” reaction for each user seperately, but then what is the point of Comment ? Author ? Roles conditions in the first place?
PS: Users in WordPress cannot have multiple roles as the documentation seems to suggest. Users can have a single role but roles can have multiple capabilities.
- The topic ‘Role condition completely confusing’ is closed to new replies.