Answers for "how to check if we are in admin page 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

Code answers related to "how to check if we are in admin page wordpress"

Browse Popular Code Answers by Language