Automattic\WooCommerce\Utilities
FeaturesUtil::get_compatible_plugins_for_feature()
Get the names of the plugins that have been declared compatible or incompatible with a given feature.
Method of the class: FeaturesUtil{}
No Hooks.
Return
Array
. An array having a 'compatible' and an 'incompatible' key, each holding an array of plugin names.
Usage
$result = FeaturesUtil::get_compatible_plugins_for_feature( $feature_id ): array;
- $feature_id(string) (required)
- Feature id.
FeaturesUtil::get_compatible_plugins_for_feature() FeaturesUtil::get compatible plugins for feature code WC 8.6.1
public static function get_compatible_plugins_for_feature( string $feature_id ): array { return wc_get_container()->get( FeaturesController::class )->get_compatible_plugins_for_feature( $feature_id ); }