Automattic\WooCommerce\Internal\Features

FeaturesController::feature_exists()privateWC 1.0

Check whether a feature exists with a given id.

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

No Hooks.

Return

true|false. True if the feature exists.

Usage

// private - for code of main (parent) class only
$result = $this->feature_exists( $feature_id ): bool;
$feature_id(string) (required)
The feature id to check.

Code of FeaturesController::feature_exists() WC 7.1.0

private function feature_exists( string $feature_id ): bool {
	return isset( $this->features[ $feature_id ] );
}