What's Changed
- [DEPS]: Bump composer/composer from 2.5.5 to 2.5.8 by @dependabot in #112
- [DEPS]: Bump phpunit/phpunit from 9.6.8 to 9.6.10 by @dependabot in #114
- [DEPS]: Bump mockery/mockery from 1.5.1 to 1.6.4 by @dependabot in #116
- [DEPS]: Bump psr/container from 1.1.1 to 1.1.2 by @dependabot in #107
- [DEPS]: Bump 10up/wp_mock from 0.5.0 to 1.0.0 by @dependabot in #117
- [DEPS]: Bump composer/pcre from 2.1.0 to 3.1.0 by @dependabot in #106
- [FEATURE] Add a filter for loaded plugins by @jdamner in #118
Full Changelog: 2.1.0...2.2.0
Filtering the mu plugins loaded
You may wish to filer the mu plugins loaded by the mu plugin loader. WordPress does not provide any hook that is early enough
to ensure that this filter is registered before the plugins are loaded, so filtering of this list should be applied immediately before the mu-loader is initialised. You can modify the mu-require.php
file like the below, or create a new file that's alphabetically before mu-require.php
file in your mu-plugins
directory.
add_filter(
'lkwdwrd_mupluginloader_get_muplugins',
function ( array $plugins ): array {
unset( $plugins['example/plugin.php'] );
return $plugins;
}
);
// Load the mu loader
require_once 'vendor/boxuk/wp-muplugin-loader/src/mu-loader.php';