Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if the logged in user is admin

if( current_user_can('administrator') ) {
  echo 'This will display for WordPress admins only.';
};
 
PREVIOUS NEXT
Tagged: #check #logged #user #admin
ADD COMMENT
Topic
Name
4+4 =