-
Notifications
You must be signed in to change notification settings - Fork 29
9. mu plugins Autoloader
alex_prokopenko edited this page Dec 1, 2017
·
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"],
},