Change WordPress user roles and capabilities Forums How to or FAQ Restrict Role from Processing Refunds in WooCommerce Reply To: Restrict Role from Processing Refunds in WooCommerce

#2733
AGB
Participant

YES! This is perfect – thank you so much. One last question, regarding syntax: to apply this to multiple roles (‘sales’ role and also ‘shipping’ role), do I simply use a comma as the separator? Or would that make it apply to someone who had both sales & shipping role?

For example would this line be correct for applying to each of the two roles:
if (!current_user_can(‘sales’,’shipping’))