Automattic\WooCommerce\Internal\Features

FeaturesController::allow_activating_plugins_with_incompatible_features()publicWC 1.0

Sets a flag indicating that it's allowed to activate plugins for which incompatible features are enabled from the WordPress plugins page.

Method of the class: FeaturesController{}

No Hooks.

Return

null. Nothing (null).

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->allow_activating_plugins_with_incompatible_features(): void;

FeaturesController::allow_activating_plugins_with_incompatible_features() code WC 8.6.1

public function allow_activating_plugins_with_incompatible_features(): void {
	$this->force_allow_enabling_plugins = true;
}