WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
Hide WP Bannerize (5 posts)

  1. Roger N
    Member
    Posted 1 year ago #

    Hi!

    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.

    Thanks!

    http://wordpress.org/extend/plugins/role-scoper/

  2. Roger N
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    This seems to be doable by using the following advice:

    https://managewp.com/wordpress-admin-sidebar-remove-unwanted-items

    http://www.wprecipes.com/how-to-remove-menus-in-wordpress-dashboard

    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
    Member
    Posted 1 year 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. kevinB
    Member
    Plugin Author

    Posted 11 months ago #

    This sounds like a job for Adminimize.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.