Checks whether the current user's role is one of the arguments

Parameters

var_args_values String (required) - The role values to check

Returns

Boolean

Examples

ISROLE('Owner', 'Manager') // is the current role either Owner or Manager?

// returns true

Did this page help you?