PHPackages                             wemakecustom/wp-mu-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wemakecustom/wp-mu-loader

AbandonedWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

wemakecustom/wp-mu-loader
=========================

Enables the loading of Wordpress plugins sitting in mu-plugins (as folders)

v1.0.2(11y ago)2527.5k↓50%8[1 PRs](https://github.com/wemakecustom/wp-mu-loader/pulls)2GPL-2.0PHP

Since Feb 6Pushed 9y ago5 watchersCompare

[ Source](https://github.com/wemakecustom/wp-mu-loader)[ Packagist](https://packagist.org/packages/wemakecustom/wp-mu-loader)[ RSS](/packages/wemakecustom-wp-mu-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (2)

Wordpress Must-Use plugins loader
=================================

[](#wordpress-must-use-plugins-loader)

Builds a list of all plugins in the `wp-content/mu-plugins` folder and include them.

Uses the internal Wordpress function `get_plugins` for better compatibility. In theory, any plugin could be included this way.

Sadly, `get_mu_plugins` does not have any hooks.

- Will clear cache when visiting the plugin page in /wp-admin/.
- Will also clear cache if a previously detected mu-plugin was deleted.

[Original idea](https://gist.github.com/lavoiesl/6302907)

[Blog post](http://blog.lavoie.sl/2013/08/wordpress-mu-plugins-subdirectory-loader.html)

Installation
------------

[](#installation)

### Composer

[](#composer)

Add this to your `composer.json`:

```
{
    "require": {
        "wemakecustom/wp-mu-loader": "*"
    }
}
```

### Manual

[](#manual)

Extract/clone this plugin in `wp-content/mu-plugins/mu-loader/`

### IMPORTANT

[](#important)

**Copy or symlink `mu-require.php` into `wp-content/mu-plugins/`**

Usage
-----

[](#usage)

Create a plugin with this in your `composer.json`:

```
{
    "name": "my-vendor/my-plugin",
    "type": "wordpress-muplugin",
    "keywords": ["wordpress","plugins"],
    "license": "GPL-2.0",
    "require": {
        "composer/installers": "~1.0"
    },

    "extra": {
        "installer-name": "my-plugin"
    }
}
```

The `extra.installer-name` is optional, it is to give a custom folder name in case your plugin is actually declared as `my-vendor/wp-mu-my-plugin` like this one.

`keywords` and `license` are also optional but strongly suggested.

Extra notes
-----------

[](#extra-notes)

If like me, your wordpress installation is not at the root of your project, you may need to change the install path:

```
{
    "extra": {
        "installer-paths": {
            "htdocs/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
            "htdocs/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
            "htdocs/wp-content/themes/{$name}/": ["type:wordpress-theme"]
        }
    }
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~174 days

Total

3

Last Release

4130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec3a0e0db3f9c250563b821407537b24bd3304c8bb3379c017d8ca4743b7b15c?d=identicon)[lavoiesl](/maintainers/lavoiesl)

---

Top Contributors

[![lavoiesl](https://avatars.githubusercontent.com/u/1216046?v=4)](https://github.com/lavoiesl "lavoiesl (3 commits)")[![lemoinem](https://avatars.githubusercontent.com/u/234992?v=4)](https://github.com/lemoinem "lemoinem (2 commits)")[![mordant23](https://avatars.githubusercontent.com/u/1332311?v=4)](https://github.com/mordant23 "mordant23 (1 commits)")[![rexblack](https://avatars.githubusercontent.com/u/424581?v=4)](https://github.com/rexblack "rexblack (1 commits)")

---

Tags

wordpressplugins

### Embed Badge

![Health badge](/badges/wemakecustom-wp-mu-loader/health.svg)

```
[![Health](https://phpackages.com/badges/wemakecustom-wp-mu-loader/health.svg)](https://phpackages.com/packages/wemakecustom-wp-mu-loader)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
