Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingThemes::preload_data()
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() 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; }