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.
Метод класса: 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() FeaturesUtil::get compatible plugins for feature WC 9.3.3
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 ); }