Support

Account

Home Forums General Issues Post Object Query By Author Reply To: Post Object Query By Author

  • is_admin

    Description
    This Conditional Tag checks if the Dashboard or the administration panel is attempting to be displayed. It should not be used as a means to verify whether the current user has permission to view the Dashboard or the administration panel (try current_user_can() instead). This is a boolean function that will return true if the URL being accessed is in the admin section, or false for a front-end page.

    Usage

    <?php is_admin(); ?>