Hiding metabox admin menu items

Support General Hiding metabox admin menu items

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9041
    webdevwebdev
    Participant

    Hi,
    We're looking to use metabox for a number of plugins on a multisite install and I'm wondering if there's any out-of-the-box way of hiding the MB admin menu items for site admins when a feature in MB AIO is activated, ie, so we can add metaboxes, etc with code, but not allow users below network admin to add or remove them...

    I know this can be done with remove_menu_page( $menu_slug ) within the plugins themselves, but I'm just wondering if there's a setting I'm missing somewhere?

    #9065
    Anh TranAnh Tran
    Keymaster

    Hi,

    There are some plugins that hide admin menus, which should work in this situation:

    https://wordpress.org/plugins/admin-menu-editor/
    https://wordpress.org/plugins/adminimize/
    https://codecanyon.net/item/wordpress-hide-admin-menu-plugin/290744 (my plugin)

    #9074
    webdevwebdev
    Participant

    Hi,
    Thanks for the reply.
    Am I right in thinking that if we activate the plugins, copy out the code they generate into our custom plugins and then turn the plugins off, we'll still be able to use that code? ie, are all the functions in the core metabox plugin, so as long as we have that active everything should work?

    #9079
    Anh TranAnh Tran
    Keymaster

    Do you mean copy the code generated by the MB Builder?

    If the code is not for user profile, settings page or taxonomies, then you can just copy it and deactivate the builder extension. It will work.

    If the code is for user profile, settings page or taxonomies, you'll need the corresponding plugin activated (MB User Meta, MB Settings Pages, MB Term Meta). The builder extension then can be deactivated.

    In either cases, you still need to keep Meta Box activated.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hiding metabox admin menu items’ is closed to new replies.