• Howdie Friends,

    I am just now getting into the multisite stuff.

    I have created my mu-plugin folder, moved plugins (in folders) to the mu-plugin folder, I can’t see the plugins in the super admin plugin section, so I tried adding a file called include-my-plugin.php to the mu-plugin folder and it still won’t see the plugins.

    So out of curiosity I moved 4 files (out of their plugin folder) from one of the plugins to the mu-plugin folder and now I can see the plugin.

    So without dragging all the files out of their respective plugin folders to put in the mu-plugin folder how do I get the mu-plugin folder to the see the files?

    Did I create the include-my-plugin.php file wrong? Whats the code that should be in the file, I can’t find any?

    Thanks a million for any replies I get 🙂

    Tam

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    MU stands for Must Use. So mu-plugins are ones you want to run, automatically, on every site. And? Not all plugins work that way.

    Put ’em back in plugins, and check if each one is okay to use in mu-plugins or not before you move them.

    Thread Starter Klutzys1

    (@klutzys1)

    Hi ipstenu, I appreciate you taking the time to answer me. The plugins I put in there was recommended from another multisite user’s ebook so I am sure these plugins do work in the mu-plugins as that’s where it said to put them. 🙂

    What it didn’t say was that the plugins are in folders and folders and the mu-plugin file don’t plat nice so I’m trying to get em visible 🙂

    So alas I wait to see what else you think I should do or anyone else.

    Oh, how would I check to see if they are okay to use in mu-plugins, will it say so somewhere? Feeling a little duh here *sigh*

    Tam

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It should either say so on the plugin page in the repository or on the plugin support forums.

    Thread Starter Klutzys1

    (@klutzys1)

    Cool I guess I can start there and make sure they are all okay to be there then I can figure out why the plugins are not being seen while they are in their folders.

    Thanks again!

    Have a look at this tip I’ve used to load files inside folders in the mu-plugins folder:

    http://wordpress.org/support/topic/why-cant-i-install-plugins-in-subfolder-in-mu-plugins

    Thread Starter Klutzys1

    (@klutzys1)

    Hi David,

    Thanks for the link. So if I use the code you mention, see below, will that read all php files in say 5 different plugins or only in the 1st folder? I have several plugins in the mu-plugin folder 🙂

    Tam

    or to include a bunch of php files inside the first folder:

    <?php
    $my_plugins = glob( dirname( __FILE__ ) . ‘/my_plugins_folder/*.php’);
    if( is_array( $my_plugins ) ) {
    foreach ( $my_plugins as $my_plugin ) {
    if( is_file( $my_plugin ) )
    include_once( $my_plugin );
    }
    }
    ?>

    Thread Starter Klutzys1

    (@klutzys1)

    Hey well it appears I can put a plugin in the regular plugin folder (not mu-plugin) and I am given the option to make it Network Active 🙂 Cool so there really is no need for me to put them in the MU-plugin folder. Woo Hoo!

    If I am misunderstanding something please let me know so I don’t mess up my Network site 🙂

    Yeah yeah doing the happy dance.

    Tam
    PS thanks everyone for help

    If I am misunderstanding something please let me know so I don’t mess up my Network site

    Just note that if you read instruction of plugin author to install plugin in wp-content/mu-plugin then you must upload the plugin file (without the folder)via FTP or cpanel to the mu-plugins folder in your server.
    e.g. David’s More Privacy Options Plugin – see #1 instruction? http://wordpress.org/extend/plugins/more-privacy-options/installation/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    SOME plugins need to be network activated, some don’t, some want to be in mu-plugins. It’s a bit of a crap shoot, so you really have to study each plugin.

    MOST will work just fine per-site, and MANY will work network.

    Thread Starter Klutzys1

    (@klutzys1)

    Okay, got it!!! I will read every plugin and see if it says “must be in mu-plugin folder” if not it’s going in the regular 🙂

    Thanks guys! Sheesh what a pain to figure out but now I understand.

    Tam

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘mu-plugin’ is closed to new replies.