WordPress.org

Ready to get started?Download WordPress

Forums

Mu-plugins folder name necessary? (15 posts)

  1. drezac
    Member
    Posted 3 years ago #

    Just a quick question-

    We're running WP Multi Site, and have had issues with many of the plug-ins only working on the Root site, and not the many other sites. I have been manually adding the plug ins to the MS folder, however the folder is not named "mu-plugins" as I've seen referenced so many times. It's simply named plugins, but it is the ms plugins folder.

    Could this be why so many of the plug-ins are not working across the entire network?

    Thanks in advance!
    Daniel

  2. no.

    Regular plugins placed in the regualr plugins folder are available to every site in the network, but you still need to visit each site and *activate* the plugins you want.

    the mu-plugins folder is for plugins that specifically state to install them in that folder.
    http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/

    you can also Network Activate plugins, but some plugins do not like this approach (because they aren't coded for it) and you still have to visit each site to fill out the plugin settings.

    Overall, it also depends on the plugins, so "plugins only work on the main site" is really ... vague.

    Go visit the plugins menu on a secondary site. Activate a plugin & set it up? Did it work? 90% of the time, you're good.

  3. drezac
    Member
    Posted 3 years ago #

    Thanks-

    But we are rolling out something like 800 blogs for out students at our school, and I can't imagine going to each and every one of their sites to activate a plugin.

    Surely there is another way?

    Daniel

  4. What's the plugin(s)?

    Again - network activate. Look into it. :)

  5. I would probably be inclined to make a master 'template' blog and use the WP Replicator plugin to dupe it. I know that one keeps all plugin settings, so if I network activate, then I know the replicated sites will have the defaults I want included :)

  6. drezac
    Member
    Posted 3 years ago #

    Most all of our plugins are Network Activated. The biggest issue I'm having is with Changing Roles.

    I'm using USer Role Editor : http://www.shinephp.com/user-role-editor-wordpress-plugin/

    The biggest thing we need to do is to allow Editors to change their themes. We want students to be able have some capabilities but limit some things as well.

    Daniel

  7. How much theme changing? Cause there's this: http://wordpress.org/extend/plugins/site-specific-css/

  8. drezac
    Member
    Posted 3 years ago #

    Thanks!

    I just want them to be able to Choose their theme, but we don't want them to have Admin controls.

    Heck I'd be okay if they were just Contributors, but still able to change and choose the theme on their blog. Some of these kids are like 4th, 3rd grade and the Admin controls just give them way too much control.

    Danel

  9. I just want them to be able to Choose their theme, but we don't want them to have Admin controls.

    I thought they could do that... If you activate a theme for the network, then they can pick and choose the one they want. Did I miss something?

  10. There is no user role plugin currently that works network wide.

    For removing menus in a network, you want this:
    http://wordpress.org/extend/plugins/menus/

    Note this one *does* go in the mu-plugins folder.

  11. drezac
    Member
    Posted 3 years ago #

    @ipstenu The Editor Role doesn't allow theme changes.

    @Andrea_r : I do use that one! And it does work across network. Thanks.

    However- If I limit the Admin role for students, it would also inadvertently limit the Admin role for the teachers, and they need to have control over their student's blogs.

    The only other option would be to make all of the teachers Super Admins.

    Really- there's got to be a way to hack the php to change the Editor user to edit_themes or change_themes across the network.

    Any ideas? Thanks, BTW for helping!

    Daniel

  12. Really- there's got to be a way to hack the php to change the Editor user to edit_themes or change_themes across the network.

    Nope, cause that's against the point of having Editors (which I blanked on you wanting them to be for some reason).

    http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table

    In THEORY if you set up a template blog with a roles/capabilities plugin included and configured, and copied THAT via WP Replicator or such, it would keep your plugin settings so you could have the special Editor Plus role per site.

  13. drezac
    Member
    Posted 3 years ago #

    Ah- so I will definitely take a look at WP Replicator!
    I appreciate your candidness.

    Daniel

  14. Tim Moore
    Moderator
    Posted 3 years ago #

    You can always put something like this in mu-plugins:

    function modify_editor_role() {
            get_role( 'editor' );
            global $wp_roles;
            $wp_roles->role_objects['editor']->add_cap( 'edit_themes' );
            $wp_roles->role_objects['editor']->add_cap( 'edit_theme_options' );
    }
    
    add_action( 'admin_init', 'modify_editor_role', 9999 );
  15. David Sader
    Member
    Posted 3 years ago #

    3rd and 4th graders editing themes?

    Try 'switch_themes'

    $wp_roles->role_objects['editor']->add_cap( 'switch_themes' );

Topic Closed

This topic has been closed to new replies.

About this Topic