Answers for "check if the logged in user is admin"

PHP
0

check if the logged in user is admin

if( current_user_can('administrator') ) {
  echo 'This will display for WordPress admins only.';
};
Posted by: Guest on February-21-2022

Code answers related to "check if the logged in user is admin"

Browse Popular Code Answers by Language