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

Automattic\WooCommerce\Admin\Features

Onboarding::get_allowed_product_types() public WC 1.0

Get a list of allowed product types for the onboarding wizard.

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

Хуки из метода

Возвращает

Массив.

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

$result = Onboarding::get_allowed_product_types();

Код Onboarding::get_allowed_product_types() WC 6.1.1

public static function get_allowed_product_types() {
	$products      = array(
		'physical'        => array(
			'label'   => __( 'Physical products', 'woocommerce' ),
			'default' => true,
		),
		'downloads'       => array(
			'label' => __( 'Downloads', 'woocommerce' ),
		),
		'subscriptions'   => array(
			'label' => __( 'Subscriptions', 'woocommerce' ),
		),
		'memberships'     => array(
			'label'   => __( 'Memberships', 'woocommerce' ),
			'product' => 958589,
		),
		'bookings'        => array(
			'label'   => __( 'Bookings', 'woocommerce' ),
			'product' => 390890,
		),
		'product-bundles' => array(
			'label'   => __( 'Bundles', 'woocommerce' ),
			'product' => 18716,
		),
		'product-add-ons' => array(
			'label'   => __( 'Customizable products', 'woocommerce' ),
			'product' => 18618,
		),
	);
	$base_location = wc_get_base_location();
	if ( ! Features::is_enabled( 'subscriptions' ) || 'US' !== $base_location['country'] ) {
		$products['subscriptions']['product'] = 27147;
	}
	$product_types = self::append_product_data( $products );

	return apply_filters( 'woocommerce_admin_onboarding_product_types', $product_types );
}