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

Automattic\WooCommerce\Admin\Features

Onboarding::get_onboarding_allowed_plugins() public WC 1.0

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

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

Возвращает

Массив.

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

$result = Onboarding::get_onboarding_allowed_plugins( $plugins );
$plugins(массив) (обязательный)
Array of plugin slugs to be allowed.

Код Onboarding::get_onboarding_allowed_plugins() WC 4.7.1

<?php
public static function get_onboarding_allowed_plugins( $plugins ) {
	$onboarding_plugins = apply_filters(
		'woocommerce_admin_onboarding_plugins_whitelist',
		array(
			'facebook-for-woocommerce'            => 'facebook-for-woocommerce/facebook-for-woocommerce.php',
			'mailchimp-for-woocommerce'           => 'mailchimp-for-woocommerce/mailchimp-woocommerce.php',
			'kliken-marketing-for-google'         => 'kliken-marketing-for-google/kliken-marketing-for-google.php',
			'jetpack'                             => 'jetpack/jetpack.php',
			'woocommerce-services'                => 'woocommerce-services/woocommerce-services.php',
			'woocommerce-gateway-stripe'          => 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php',
			'woocommerce-gateway-paypal-express-checkout' => 'woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php',
			'klarna-checkout-for-woocommerce'     => 'klarna-checkout-for-woocommerce/klarna-checkout-for-woocommerce.php',
			'klarna-payments-for-woocommerce'     => 'klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php',
			'woocommerce-square'                  => 'woocommerce-square/woocommerce-square.php',
			'woocommerce-shipstation-integration' => 'woocommerce-shipstation-integration/woocommerce-shipstation.php',
			'woocommerce-payfast-gateway'         => 'woocommerce-payfast-gateway/gateway-payfast.php',
			'woocommerce-payments'                => 'woocommerce-payments/woocommerce-payments.php',
			'woocommerce-gateway-eway'            => 'woocommerce-gateway-eway/woocommerce-gateway-eway.php',
		)
	);
	return array_merge( $plugins, $onboarding_plugins );
}