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

Automattic\WooCommerce\Admin\Features

Onboarding::component_settings() public WC 1.0

Add profiler items to component settings.

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

Хуков нет.

Возвращает

Массив.

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

$Onboarding = new Onboarding();
$Onboarding->component_settings( $settings );
$settings(массив) (обязательный)
Component settings.

Код Onboarding::component_settings() WC 5.5.2

<?php
public function component_settings( $settings ) {
	$profile                = (array) get_option( self::PROFILE_DATA_OPTION, array() );
	$settings['onboarding'] = array(
		'profile' => $profile,
	);

	// Only fetch if the onboarding wizard OR the task list is incomplete or currently shown
	// or the current page is one of the WooCommerce Admin pages.
	if (
		( ! self::should_show_profiler() && ! self::should_show_tasks()
		||
		! $this->is_wc_pages()
	)
	) {
		return $settings;
	}

	include_once WC_ABSPATH . 'includes/admin/helper/class-wc-helper-options.php';
	$wccom_auth                 = \WC_Helper_Options::get( 'auth' );
	$profile['wccom_connected'] = empty( $wccom_auth['access_token'] ) ? false : true;

	$settings['onboarding']['activeTheme']     = get_option( 'stylesheet' );
	$settings['onboarding']['currencySymbols'] = get_woocommerce_currency_symbols();
	$settings['onboarding']['euCountries']     = WC()->countries->get_european_union_countries();
	$settings['onboarding']['industries']      = self::get_allowed_industries();
	$settings['onboarding']['localeInfo']      = include WC()->plugin_path() . '/i18n/locale-info.php';
	$settings['onboarding']['productTypes']    = self::get_allowed_product_types();
	$settings['onboarding']['profile']         = $profile;
	$settings['onboarding']['themes']          = self::get_themes();

	return $settings;
}