Answers for "is_page admin wordpress"

PHP
0

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 } ?>
Posted by: Guest on August-11-2021
0

wordpress is admin

// Determines whether the current request is for an 
// administrative interface page.
is_admin()
Posted by: Guest on February-19-2021

Browse Popular Code Answers by Language