WC_Tracker::get_enabled_features()
Get an array of slugs for WC features that are enabled on the site.
Метод класса: WC_Tracker{}
Хуков нет.
Возвращает
Строку[]
.
Использование
$result = WC_Tracker::get_enabled_features();
Код WC_Tracker::get_enabled_features() WC Tracker::get enabled features WC 9.4.2
private static function get_enabled_features() { $all_features = FeaturesUtil::get_features( true, true ); $enabled_features = array_filter( $all_features, function( $feature ) { return $feature['is_enabled']; } ); return array_keys( $enabled_features ); }