The mu-plugins folder

One noticeable difference in the file structure between WordPress and WordPressMU is the addition of the mu-plugins folder. Files placed within this folder will be executed automatically.

If the plugin requires a hook into the plugin activation sequence, it will not be compatible with this auto-execution directory. If this is they case, you will either need to contact the plugin author and recommend a potential fix, or code one up yourself for your own use.

Plugins places in the mu-plugins directory will not show up in the Plugins menu.

Many plugins written to go specifically in this folder do not have an admin panel to show up in the admin area. These plugins usually have code that needs to be added somewhere, and it will mention this either at the top of the plugin’s file or in the plugin’s readme (if it has one). Since this feature is exclusive to MU, regular WordPress plugins placed in this folder may or may not work. If they do not work, it may be a small change needed to the code of the plugin in question. Each case is different and you will either have to read the code of the plugin or ask the plugin author. Please test new plugins one at a time.

Care should be taken as to what plugins are placed here, as and excessive amount will cause your site to slow down or use up resources, as code in this folder is executed on a continuing basis.

(props to lunabyte for clarification)

  • No Related Post

  • No Related Post
bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark
tabs-top  banner ad


5 Responses to “The mu-plugins folder”

  1. au8ust says:

    Hm… Mu seems to be more difficult than I think. Anyway, thanks to the great resources!

  2. Tom Fisher says:

    Thanks for the info. I’m fairly new to WPMU, just got a site installed with it, and installed my first Plugin into the MU-Plugins folder, per it’s instructions. Went to activate it and it did not show in the Plugins menu. Thought I had done something wrong. I may still of done it wrong, but it now know that ones placed in the MU-Plugins don’t show.

    Thanks again,
    Tom

  3. TimFitz says:

    Thanks for the info, this clears up a lot, I just started an Wordpress MU site and this helps.

  4. Dan says:

    For some strange reason I do not have a mu-plugins folder in my wp-content folder. Did I do something wrong with my install?

  5. [...] on the WPMU plugin kick: MU’s “mu-plugins” folder is great for plugin functionality which should be available for all MU sites without [...]

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

CommentLuv Enabled