[resolved] [Plugin: WordPress Admin Bar] Admins only? (3 posts)

  1. adamsmark
    Posted 8 years ago #

    Is there a way to restrict this feature to admins only? Regular users (subscribers) also have access to it, though they are restricted mainly to their profile. However, some plugins show up, mainly documentation, but no functions. Can this feature be restricted to a group of users?


  2. Modify this line at the top of the plugin:

    if ( !current_user_can( 'read' ) ) return;

    Change the "read" to like "manage_options".

    I'll add this to the options page in a future version.

  3. nyliferocks
    Posted 7 years ago #

    This will hide everything? How could I then disable only certain menus? Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic