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.

Метод класса: FeaturesController{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код FeaturesController::allow_activating_plugins_with_incompatible_features() WC 7.1.0

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