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

With "use_description" we turn the description input on. With "description_label" we set the input label

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

add_filter( 'woocommerce_admin_onboarding_industries', 'wp_kama_woocommerce_admin_onboarding_industries_filter' );

/**
 * Function for `woocommerce_admin_onboarding_industries` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_admin_onboarding_industries_filter( $array ){

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

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

OnboardingIndustries::get_allowed_industries()
woocommerce_admin_onboarding_industries
OnboardingProfile::filter_industries()
woocommerce_admin_onboarding_industries
woocommerce/src/Internal/Admin/Onboarding/OnboardingIndustries.php 26-70
return apply_filters(
	'woocommerce_admin_onboarding_industries',
	array(
		'fashion-apparel-accessories'     => array(
			'label'             => __( 'Fashion, apparel, and accessories', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'health-beauty'                   => array(
			'label'             => __( 'Health and beauty', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'electronics-computers'           => array(
			'label'             => __( 'Electronics and computers', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'food-drink'                      => array(
			'label'             => __( 'Food and drink', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'home-furniture-garden'           => array(
			'label'             => __( 'Home, furniture, and garden', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'cbd-other-hemp-derived-products' => array(
			'label'             => __( 'CBD and other hemp-derived products', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'education-and-learning'          => array(
			'label'             => __( 'Education and learning', 'woocommerce' ),
			'use_description'   => false,
			'description_label' => '',
		),
		'other'                           => array(
			'label'             => __( 'Other', 'woocommerce' ),
			'use_description'   => true,
			'description_label' => __( 'Description', 'woocommerce' ),
		),
	)
);
woocommerce/src/Admin/API/OnboardingProfile.php 143-146
return apply_filters(
	'woocommerce_admin_onboarding_industries',
	$industries
);

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

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