I have this code, which works perfectly:
if (in_array('administrator', $user->roles)) {
I need it to also check for another role, so that it would be an, 'if this or that' scenario, such as, if administrator or editor
I've tried:
if (in_array('administrator', 'editor' $user->roles)) {
But that didn't work. Any help is appreciated.