[Plugin: Widget Logic] How to test two current_user_can('role')?
-
I want to show a widget when the user has role=leden or role=ai1ec_event_assistar.
I thought I place in the Widget Logic area this code:
current_user_can('leden') || current_user_can('ai1ec_event_assistar'
But this is not working.The both roles seperately are working, but how do I use two roles with the “OR” ?
Thanks
dunster
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[Plugin: Widget Logic] How to test two current_user_can('role')?’ is closed to new replies.