WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Features

Onboarding::get_allowed_themes() public WC 1.0

Gets an array of themes that can be installed & activated via the onboarding wizard.

{} Это метод класса: Onboarding{}

Возвращает

Массив.

Использование

$result = Onboarding::get_allowed_themes();

Код Onboarding::get_allowed_themes() WC 4.7.0

<?php
public static function get_allowed_themes() {
	$allowed_themes = array();
	$themes         = self::get_themes();

	foreach ( $themes as $theme ) {
		$price = preg_replace( '/&#?[a-z0-9]+;/i', '', $theme['price'] );

		if ( $theme['is_installed'] || '0.00' === $price ) {
			$allowed_themes[] = $theme['slug'];
		}
	}

	return apply_filters( 'woocommerce_admin_onboarding_themes_whitelist', $allowed_themes );
}