PHP code example of humanmade / mu-plugins-loader
1. Go to this page and download the library: Download humanmade/mu-plugins-loader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
humanmade / mu-plugins-loader example snippets
# wp-content/mu-plugins/0000-plugins.php
define( 'HM_MU_PLUGINS', [
'authorship/plugin.php',
] );
json
{
"extra": {
"mu-plugins": [
"authorship/plugin.php"
],
"installer-paths": {
"/content/mu-plugins/{$name}/": {
"humanmade/authorship",
"type:wordpress-muplugin"
}
}
}
}