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')): ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict Content if’ is closed to new replies.