WC_Helper_Compat::deactivate_plugin() public WC 1.0
Attempt to deactivate the legacy helper plugin.
{} Это метод класса: WC_Helper_Compat{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = WC_Helper_Compat::deactivate_plugin();
Код WC_Helper_Compat::deactivate_plugin() WC Helper Compat::deactivate plugin WC 4.9.0
public static function deactivate_plugin() {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
if ( ! function_exists( 'deactivate_plugins' ) ) {
return;
}
if ( is_plugin_active( 'woothemes-updater/woothemes-updater.php' ) ) {
deactivate_plugins( 'woothemes-updater/woothemes-updater.php' );
// Notify the user when the plugin is deactivated.
add_action( 'pre_current_active_plugins', array( __CLASS__, 'plugin_deactivation_notice' ) );
}
}