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

As of WooCommerce 4.1, all new sites should use the latest OBW from wc-admin package. This filter will allow for forcing the old wizard while we migrate e2e tests.

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

add_filter( 'woocommerce_setup_wizard_force_legacy', 'wp_kama_woocommerce_setup_wizard_force_legacy_filter' );

/**
 * Function for `woocommerce_setup_wizard_force_legacy` filter-hook.
 * 
 * @param  $false 
 *
 * @return 
 */
function wp_kama_woocommerce_setup_wizard_force_legacy_filter( $false ){

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

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

WC_Admin_Setup_Wizard::should_show_wc_admin_onboarding()
woocommerce_setup_wizard_force_legacy
woocommerce/includes/admin/class-wc-admin-setup-wizard.php 184
return ! apply_filters( 'woocommerce_setup_wizard_force_legacy', false );

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

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