WC_Tracker::get_enabled_features()private staticWC 1.0

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