• Resolved James Hunt

    (@bonkerz)


    MetaSlider seems to be quite obnoxious at not letting me hide it in the Admin menu

    Its not detected by Adminize plugin and editing functions.php also does not hide it, using either

    remove_menu_page(‘page=metaslider’);
    remove_menu_page(‘metaslider’);

    How can I hide it from a non-admin user? I don’t want my admin staff to access the slider

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @bonkerz,

    The plugin should automatically be hidden from anyone below editor status. However, you can update this with a function.

    add_filter('metaslider_capability', 'metaslider_change_cap', 1, 0);
    function metaslider_change_cap() {
        return 'manage_options';
    }

    But I just discovered a bug in this part of the code, so I will add a fix for it in the next release.

    In the meantime, if you want to go in and edit ml-slider/admin/Pages.php and change line 146/147 to add the capability filter, it will have the same effect. It will be safe to update the plugin as well, because I will add something similar

    $this->current_page = $slug;
    $this->capability = apply_filters('metaslider_capability', 'edit_others_posts');
    Thread Starter James Hunt

    (@bonkerz)

    Fantastic. I am using in a dev environment right now, so will probably just wait for the next release. Thanks for addressing.

    Hi @bonkerz,

    Just wanted to follow up that the release we just made includes the fix for this issue. If you are still having issues please feel free to contact us. Take a great week!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hiding MetaSlider from non-admin users’ is closed to new replies.