Having trouble doing this. This does not seem to work:
[s2If !current_user_can(access_s2member_ccap_cap1) OR !current_user_can(access_s2member_ccap_cap2) ]
How does one combine ccaps?
Having trouble doing this. This does not seem to work:
[s2If !current_user_can(access_s2member_ccap_cap1) OR !current_user_can(access_s2member_ccap_cap2) ]
How does one combine ccaps?
The logic there is faulty. You need an AND connector, not an OR.
That suggests you needed both capabilities whereas you only need one.
No, it doesn’t. You have included an !
with both ccaps. That changes the code to which it applies into a negative.
Your original code meant “canNOT access ccap1 OR canNOT access ccap2” which clearly makes no sense. The only way it would make sense is if the user could not access either ccap.
Reading between the lines of your latest comment, perhaps what you really want is “CAN access ccap1 OR ccap2”. If so, you need to get rid of both the !
Of course… I think I changed it around and maybe hadn’t flushed my pages so it wasn’t showing what it was supposed to. Good to have the confirmation… thanks.