Automattic\WooCommerce\Internal\Features
FeaturesController::handle_plugin_deactivation()
Handle the plugin deactivation hook.
Метод класса: FeaturesController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->handle_plugin_deactivation( $plugin_name ): void;
- $plugin_name(строка) (обязательный)
- Name of the plugin that has been deactivated.
Код FeaturesController::handle_plugin_deactivation() FeaturesController::handle plugin deactivation WC 8.7.0
private function handle_plugin_deactivation( $plugin_name ): void { unset( $this->compatibility_info_by_plugin[ $plugin_name ] ); foreach ( array_keys( $this->compatibility_info_by_feature ) as $feature ) { $compatibles = $this->compatibility_info_by_feature[ $feature ]['compatible']; $this->compatibility_info_by_feature[ $feature ]['compatible'] = array_diff( $compatibles, array( $plugin_name ) ); $incompatibles = $this->compatibility_info_by_feature[ $feature ]['incompatible']; $this->compatibility_info_by_feature[ $feature ]['incompatible'] = array_diff( $incompatibles, array( $plugin_name ) ); } }