FeaturesUtil::get_compatible_features_for_plugin()public staticWC 1.0

Get the ids of the features that a certain plugin has declared compatibility for.

This method can't be called before the woocommerce_init is fired.

Method of the class: FeaturesUtil{}

No Hooks.


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


$result = FeaturesUtil::get_compatible_features_for_plugin( $plugin_name ): array;
$plugin_name(string) (required)
Plugin name, in the form 'directory/file.php'.

FeaturesUtil::get_compatible_features_for_plugin() code WC 8.9.0

public static function get_compatible_features_for_plugin( string $plugin_name ): array {
	return wc_get_container()->get( FeaturesController::class )->get_compatible_features_for_plugin( $plugin_name );