Retriev3r
8/12/2016 - 9:19 AM

Wordpress - Check if user is admin

Check if user is admin

<?php if ( current_user_can( 'manage_options' ) ) {
    /* A user with admin privileges */
  } else {
    /* A user without admin privileges */
  }
?>