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

Automattic\WooCommerce\Admin\Features

Onboarding::component_settings() public WC 1.0

Add profiler items to component settings.

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

Хуков нет.

Возвращает

Null. Ничего.

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

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

Код Onboarding::component_settings() WC 4.7.1

<?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.
	if ( ! self::should_show_profiler() && ! self::should_show_tasks() ) {
		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']['euCountries']  = WC()->countries->get_european_union_countries();
	$settings['onboarding']['industries']   = self::get_allowed_industries();
	$settings['onboarding']['productTypes'] = self::get_allowed_product_types();
	$settings['onboarding']['profile']      = $profile;
	$settings['onboarding']['themes']       = self::get_themes();

	return $settings;
}