dark-kitt / wordpress-mu-plugin-autoloader
This WordPress MU-Plugin loads MU-Plugins from subdirectories
Installs: 23
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
This package is auto-updated.
Last update: 2025-04-29 01:29:18 UTC
README
Project: Part 1, Part 2, Part 3
Introduction
This WordPress MU-Plugin loads MU-Plugins from subdirectories. WordPress only looks for PHP files right inside the MU-Plugins directory, and not for files in subdirectories (unlike for normal plugins).
After installing the package, copy the mu-plugin-autoloader.php file inside of the MU-Plugins directory (/mu-plugins
), to load WordPress MU-Plugins automatically.
This MU-Plugin is a modified version based on the richardtape/subdir-loader.php Github Gist.
Requirements
Installation
composer require dark-kitt/wordpress-mu-plugin-autoloader
If you have a specific path to your MU-Plugin directory, please add the following lines to your composer.json file.
"extra": { "installer-paths": { "path/to/mu-plugins/{$name}/": [ "type:wordpress-muplugin" ] }, "wordpress-install-dir": "path/to/wordpress" },
Note, for a specific commit of your VCS Repo "require": { "vendor/repo_name": "dev-main#eec8698" }
(branch#commit).
common composer cmds
composer install composer update # package control composer require verdor/package composer remove verdor/package composer clear-cache composer show -i # installed packages