Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress if admin

<?php if(current_user_can('editor')) { ?> 
    <!-- Stuff here for editors -->
<?php } ?>

<?php if(current_user_can('administrator')) { ?>
    <!-- Stuff here for administrators -->
<?php } ?>
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #admin
ADD COMMENT
Topic
Name
1+8 =