PHP code example of boxuk / wp-muplugin-loader
1. Go to this page and download the library: Download boxuk/wp-muplugin-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/ */
boxuk / wp-muplugin-loader example snippets
define('MU_PLUGIN_LOADER_SRC_DIR', WPCOM_VIP_CLIENT_MU_PLUGIN_DIR . '/');
add_filter(
'lkwdwrd_mupluginloader_get_muplugins',
function ( array $plugins ): array {
unset( $plugins['example/plugin.php'] );
return $plugins;
}
);
// Load the mu loader