Automattic\WooCommerce\Internal\Features
FeaturesController::maybe_init_feature_definitions
Initialize hardcoded feature definitions if they have not been initialized yet.
Method of the class: FeaturesController{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->maybe_init_feature_definitions(): void;
FeaturesController::maybe_init_feature_definitions() FeaturesController::maybe init feature definitions code WC 11.2.2
private function maybe_init_feature_definitions(): void {
if ( ! empty( $this->features ) || $this->initializing_feature_definitions ) {
return;
}
$this->initializing_feature_definitions = true;
try {
$this->init_feature_definitions();
} finally {
$this->initializing_feature_definitions = false;
}
}