Automattic\WooCommerce\Admin\Features
Features::get_legacy_feature_compatibility_deprecation_version
Gets the WooCommerce version where a legacy feature flag shim was deprecated.
Method of the class: Features{}
No Hooks.
Returns
string|null.
Usage
$result = Features::get_legacy_feature_compatibility_deprecation_version( $feature );
- $feature(string) (required)
- Feature slug.
Features::get_legacy_feature_compatibility_deprecation_version() Features::get legacy feature compatibility deprecation version code WC 11.3.0
private static function get_legacy_feature_compatibility_deprecation_version( $feature ) {
$versions = self::get_legacy_feature_compatibility_versions( $feature );
return $versions['deprecated_since'] ?? null;
}