Automattic\WooCommerce\Internal\Features
FeaturesController::get_feature_definition
Get the definition array for a specific feature.
Method of the class: FeaturesController{}
No Hooks.
Returns
Array|null. The feature definition array, or null if the feature doesn't exist.
Usage
$FeaturesController = new FeaturesController(); $FeaturesController->get_feature_definition( $feature_id ): ?array;
- $feature_id(string) (required)
- Unique feature id.
Changelog
| Since 10.5.0 | Introduced. |
FeaturesController::get_feature_definition() FeaturesController::get feature definition code WC 10.8.1
public function get_feature_definition( string $feature_id ): ?array {
return $this->get_feature_definitions()[ $feature_id ] ?? null;
}