Automattic\WooCommerce\Admin\PluginsProvider
PluginsProvider::set_deactivated_plugin()
Set the deactivated plugin. This is needed because the deactivated_plugin hook happens before the option is updated which means that getting the active plugins includes the deactivated plugin.
Метод класса: PluginsProvider{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = PluginsProvider::set_deactivated_plugin( $plugin_path );
- $plugin_path(строка) (обязательный)
- The path to the plugin being deactivated.
Код PluginsProvider::set_deactivated_plugin() PluginsProvider::set deactivated plugin WC 9.8.1
public static function set_deactivated_plugin( $plugin_path ) { self::$deactivated_plugin_slug = explode( '/', $plugin_path )[0]; }