Automattic\WooCommerce\Internal\Features

FeaturesController::is_legacy_feature()publicWC 1.0

Checks whether a feature id corresponds to a legacy feature (a feature that existed prior to the implementation of the features engine).

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

No Hooks.

Return

true|false. True if the id corresponds to a legacy feature.

Usage

$FeaturesController = new FeaturesController();
$FeaturesController->is_legacy_feature( $feature_id ): bool;
$feature_id(string) (required)
The feature id to check.

Code of FeaturesController::is_legacy_feature() WC 7.1.0

public function is_legacy_feature( string $feature_id ): bool {
	return in_array( $feature_id, $this->legacy_feature_ids, true );
}