Answers for "wordpress how to tell who is admin"

PHP
1

wp is user admin

if ( current_user_can('administrator') ) {} // also others than admin w same capabilities
if ( is_user_admin() ){} // if it is admin
if ( is_admin() ){} //if the view is not the admin interface but the theme
Posted by: Guest on June-04-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 "wordpress how to tell who is admin"

Browse Popular Code Answers by Language