If the current user is an administrator or editor

First answer, not WordPress-related because it is just only PHP: Use the logic “OR” operator: <?php if( current_user_can(‘editor’) || current_user_can(‘administrator’) ) { ?> // Stuff here for administrators or editors <?php } ?> If you want to check more than two roles, you can check if the roles of the current user is inside an … Read more