dev-master
9999999-devLibrary for WordPress plugin control
GPL-2.0
The Requires
- php >=5.4.0
by Evan Mattson
Library for WordPress plugin control
A simple library for WordPress plugin activation control., (*1)
Intended for use within a Must Use plugin., (*2)
new \PrimeTime\WordPress\PluginControl\EnablePlugins('akismet/akismet.php');
new \PrimeTime\WordPress\PluginControl\DisablePlugins('akismet/akismet.php');
The contructors can also accept an array of plugin files:, (*3)
new \PrimeTime\WordPress\PluginControl\EnablePlugins(['akismet/akismet.php', 'hello.php']);
new \PrimeTime\WordPress\PluginControl\NetworkEnablePlugins('akismet/akismet.php');
new \PrimeTime\WordPress\PluginControl\NetworkDisablePlugins('akismet/akismet.php');
Note: Network disabling a plugin does not prevent the plugin from being loaded, it may still be enabled at the site-level unless force-disabled., (*4)
Via Composer (recommended), (*5)
composer require primetime/wp-plugin-control:~0.1.0
Library for WordPress plugin control
GPL-2.0