Automattic\WooCommerce\Utilities

FeaturesUtil::allow_activating_plugins_with_incompatible_features()public staticWC 1.0

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

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

No Hooks.

Return

null. Nothing.

Usage

$result = FeaturesUtil::allow_activating_plugins_with_incompatible_features(): void;

Code of FeaturesUtil::allow_activating_plugins_with_incompatible_features() WC 7.1.0

public static function allow_activating_plugins_with_incompatible_features(): void {
	wc_get_container()->get( FeaturesController::class )->allow_activating_plugins_with_incompatible_features();
}