FeaturesUtil::get_compatible_plugins_for_feature()public staticWC 1.0

Get the names of the plugins that have been declared compatible or incompatible with a given feature.

Method of the class: FeaturesUtil{}

No Hooks.


Array. An array having a 'compatible' and an 'incompatible' key, each holding an array of plugin names.


$result = FeaturesUtil::get_compatible_plugins_for_feature( $feature_id ): array;
$feature_id(string) (required)
Feature id.

FeaturesUtil::get_compatible_plugins_for_feature() code WC 8.9.0

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 );