woocommerce_admin_onboarding_preloaded_data хук-фильтрWC 1.0

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

add_filter( 'woocommerce_admin_onboarding_preloaded_data', 'wp_kama_woocommerce_admin_onboarding_preloaded_data_filter' );

/**
 * Function for `woocommerce_admin_onboarding_preloaded_data` filter-hook.
 * 
 * @param  $settings 
 *
 * @return 
 */
function wp_kama_woocommerce_admin_onboarding_preloaded_data_filter( $settings ){

	// filter...
	return $settings;
}
$settings
-

Где вызывается хук

OnboardingSetupWizard::component_settings()
woocommerce_admin_onboarding_preloaded_data
woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php 235
return apply_filters( 'woocommerce_admin_onboarding_preloaded_data', $settings );

Где используется хук в WooCommerce

woocommerce/src/Internal/Admin/Onboarding/OnboardingIndustries.php 17
add_filter( 'woocommerce_admin_onboarding_preloaded_data', array( __CLASS__, 'preload_data' ) );
woocommerce/src/Internal/Admin/Onboarding/OnboardingThemes.php 34
add_filter( 'woocommerce_admin_onboarding_preloaded_data', array( __CLASS__, 'preload_data' ) );