Automattic\WooCommerce\Utilities

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.

Метод класса: FeaturesUtil{}

Хуков нет.

Возвращает

Массив. 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(строка) (обязательный)
Feature id.

Код FeaturesUtil::get_compatible_plugins_for_feature() WC 7.1.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 );
}