Forums

Limit Plugin Widget To Admin Only (2 posts)

  1. Awolverine
    Member
    Posted 1 year ago #

    I'm using the plugin Dynamic Headers and it works great but my problem is user access. I am using a multi-site setup and we have tons of users that have access to this plugin via the post and page editor.

    I found this code online but don't know how to implement it into the plugin code properly.

    <?php get_currentuserinfo(); global $user_level; if ($user_level > 8) { ?>

    I have eliminated access via the menus but this plugin sticks a panel inside of the post and page editors so that you can assign different headers. I would like to make it so that only admins can see this panel.

    Here's a link to the exact plugin -

    Thanks for any direction on this!

  2. riddhishshah
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic