-
Notifications
You must be signed in to change notification settings - Fork 25
9. mu plugins Autoloader
Alex Prokopenko edited this page Sep 18, 2018
·
2 revisions
Our starter includes an autoloader that enables standard plugins to be required just like must-use plugins.
The autoloaded plugins are included with all mu-plugins before standard plugins have been loaded.
To remove this functionality, just delete wp-content/mu-plugins/mu-autoload.php
.
This enables the use of mu-plugins through Composer if their package type is wordpress-muplugin. You can also override a plugin's type like the following example:
"installer-paths": {
"wp-content/mu-plugins/{$name}/": [
"type:wordpress-muplugin",
"wpackagist-plugin/some-plugin-name"
],
},