Role Scoper
Hide WP Bannerize (5 posts)

  1. Roger N
    Posted 3 years ago #


    I have an issue with a plugin called WP Bannerize. This has its own menu in Admin, at the same level of Restrictions and Roles from Role Scoper. I need to hide this from the site contributors, but I can't figure out quite how to do it. Any ideas?

    I have a similar issue with another plugin called Quotes, also placed in the Admin at the same level.



  2. Roger N
    Posted 3 years ago #

    Correction: The other plugin is called Quotes Collection. And similar issues arise with The Events Calendar, since it is also embedded into the root of the Admin menu.

  3. Roger N
    Posted 3 years ago #

    This seems to be doable by using the following advice:



    However, this will remove the items for all users which is obviously not what I want. How do I adapt this to just the contributors?

  4. Roger N
    Posted 3 years ago #

    Almost got it sorted by removing similar admin menu items out in the functions.php. However, the WP Bannerize is stubborn and still remains in the menu. Any advice? I assume it is to do the the name used in the restrictions.

    if (! current_user_can('manage_options')){

    function remove_menus (){
    global $menu;
    $restricted = array(__('Quotes'), __('Events'), __('WP Bannerize'));
    end ($menu);
    while (prev($menu)){
    $value = explode(' ',$menu[key($menu)][0]);
    if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);


  5. Kevin Behrens
    Plugin Author

    Posted 2 years ago #

    This sounds like a job for Adminimize.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.