• First off, I want to compliment you on an *excellent* plugin, that does exactly as promised. I’ve got a multisite project I’m working on where we’re setting up site owners as shop managers, so this is quite helpful.

    While playing with it this afternoon, I had to make two small tweaks to get the plugin to perform exactly as desired, so I thought I’d share them here so that they could perhaps be integrated into a future version of the plugin.

    Item 1: Hiding “Edit CSS” link in Appearance menu

    This could just be a new feature since the last update, but the plugin left the “Edit CSS” link visible in the Appearance menu. In an effort to insulate users from potentially breaking their site, it would be nice to remove it. The following line accomplishes that when added to emwa_new_admin_menu():

    // Hide Edit CSS Submenu
    remove_submenu_page( 'themes.php', 'editcss-customizer-redirect' );

    Item 2: Changing capability required to access the settings panel

    My project has some custom admin pages utilizing the Settings API, which necessitates giving the editor/shop manager roles the manage_options capability. Would it be possible (perhaps as an option?) to set emwa_add_admin_menu() to use update_core or some similar admin-level capability unrelated to options to ensure editors don’t accidentally gain access to this panel?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author GuyPrimavera

    (@guyprimavera)

    Hi Big Cloud Media,

    Thanks for your feedback and suggestions!

    Item 1: Hiding “Edit CSS” link in Appearance menu

    This doesn’t seem to happen in a standard WP install, so I assume it’s a MultiSite issue that I missed. Thanks for bringing it to my attention and for your code, I’ll get it sorted in the next release.

    Item 2: Changing capability required to access the settings panel

    Good point. This is actually something that I have wanted to change for a while. So far, using manage_options has been the most reliable, but I think in the next version I’ll look at creating a new custom capability for this plugin and working with that.

    Plugin Author GuyPrimavera

    (@guyprimavera)

    Hi Big Cloud Media,

    I’ve just released a new version which allows the removal of other submenus under the “Appearance” menu. This should solve your first issue, but let me know if it hasn’t and I’ll get it sorted.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Optimization thoughts’ is closed to new replies.