Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingThemes::preload_data()public staticWC 1.0

Add preloaded data to onboarding.

Method of the class: OnboardingThemes{}

No Hooks.

Return

Array.

Usage

$result = OnboardingThemes::preload_data( $settings );
$settings(array) (required)
Component settings.

OnboardingThemes::preload_data() code WC 9.3.3

public static function preload_data( $settings ) {
	$settings['onboarding']['activeTheme'] = get_option( 'stylesheet' );
	$settings['onboarding']['themes']      = self::get_themes();
	return $settings;
}