• Resolved peteratomic

    (@peteratomic)


    I have the pro version enabled according to the multisite instructions. I access the settings via my main site and want to remove items from admins in the network.

    However, I’ve found that there’s no way to access menu items for things that are not installed on the main site. For instance, I have plugins enabled on subsites that are not on the main site and want to remove certain menu items. However, they aren’t listed.

    Any workarounds for this?

    https://wordpress.org/plugins/admin-menu-editor/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Unfortunately, that’s a known limitation of how the admin menu works in WordPress. Since the menu is built on-the-fly instead of being stored in the database, Admin Menu Editor only knows about menus that exist on the current site. There’s no “master list” of menu items that it could use to find all menu items that are available somewhere.

    Currently the only workaround is to create a placeholder site of sorts and activate all of your plugins on that site. Then you can edit the menu via that site.

    [Technically, AME could do something like loading all of the sites in the background and building a list of available items. However, this would obviously be very slow, and you would need to repeat that process every time you activate a plugin, change the theme, add/remove user roles (because different users see different menus), and so on.]

    Thread Starter peteratomic

    (@peteratomic)

    Ah, thanks for the clarification Janis.

    So since the plugin is network enabled, this dummy site with all of the menu items will affect the rest of the site? And would I have to leave those plugins activated and this dummy site would have to exist forever in order to maintain the link-hiding?

    Thanks for clarifying all of this!

    Plugin Author Janis Elsts

    (@whiteshadow)

    So since the plugin is network enabled, this dummy site with all of the menu items will affect the rest of the site?

    Yes.

    And would I have to leave those plugins activated and this dummy site would have to exist forever in order to maintain the link-hiding?

    They only have to exist/be active while you are editing the menu. After that, you could deactivate the plugins and delete the dummy site. Your settings would still be preserved.

    Note, however, that if you later decide you want to edit the admin menu again, you would need to recreate the site and reactivate those plugins.

    Thread Starter peteratomic

    (@peteratomic)

    Hmm, running into a problem. Can’t access the plugin anywhere other than the main site. Getting this error message on all sub-sites.

    “The plugin admin-menu-editor-pro/menu-editor.php has been deactivated due to an error: Plugin file does not exist.”

    FYI, I followed the steps to install Admin Menu Editor in mu-plugins…

    Plugin Author Janis Elsts

    (@whiteshadow)

    As far as I know, that error message only shows up for plugins installed in /wp-content/plugins. It wouldn’t show up for mu-plugins because it’s impossible to deactivate a mu-plugin; you can only delete it.

    A few things to check:

    • Did you upgrade from the free version? If so, try deleting the free version from the server.
    • Was the plugin originally installed in “plugins” and then moved to “mu-plugins”, possibly without deactivating it first?
    • Verify that this file exists and is not empty: /wp-content/mu-plugins/admin-menu-editor-mu.php
    Thread Starter peteratomic

    (@peteratomic)

    Ah, yes, I probably moved it while it was still activated.

    But as an MU plugin, isn’t it supposed to be accessible everywhere?

    Plugin Author Janis Elsts

    (@whiteshadow)

    But as an MU plugin, isn’t it supposed to be accessible everywhere?

    Yes, mu-plugins are supposed to be active everywhere. I’m not sure how moving an already-active plugin to mu-plugins would affect that, however. It’s an uncommon scenario.

    There’s one thing I forgot to mention in the previous post: by default, you will need to logged in as a Super Admin to access the plugin when it’s installed in mu-plugins.

    Thread Starter peteratomic

    (@peteratomic)

    Oh Lord.

    WAY TOO MUCH bug testing yesterday on a dozen different issues.

    It’s totally working… was going to activate the plugin. DUH. The plugin is ALREADY activated!

    Found it under Settings in one of my sub-sites.

    Thanks for your amazing support Janis!

    Plugin Author Janis Elsts

    (@whiteshadow)

    Sure, no problem 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘hiding menu items in multisite’ is closed to new replies.