Restrict Content if
Hi there! I’ve been using this to show things to administrators only:
<?php if(current_user_can('administrator')): ?>
How would I go about to adding the “editor” role to it? I tried this but it didn’t work.
<?php if(current_user_can('administrator,editor')): ?>
- The topic ‘Restrict Content if’ is closed to new replies.