Automattic\WooCommerce\Internal\Features
FeaturesController::allow_activating_plugins_with_incompatible_features
Sets a flag indicating that it's allowed to activate plugins for which incompatible features are enabled from the WordPress plugins page.
Метод класса: FeaturesController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$FeaturesController = new FeaturesController(); $FeaturesController->allow_activating_plugins_with_incompatible_features(): void;
Код FeaturesController::allow_activating_plugins_with_incompatible_features() FeaturesController::allow activating plugins with incompatible features WC 11.1.0
public function allow_activating_plugins_with_incompatible_features(): void {
$this->force_allow_enabling_plugins = true;
}