woocommerce_shipping_zone_loaded
Indicate that the WooCommerce shipping zone has been loaded.
Использование
add_action( 'woocommerce_shipping_zone_loaded', 'wp_kama_woocommerce_shipping_zone_loaded_action' ); /** * Function for `woocommerce_shipping_zone_loaded` action-hook. * * @param WC_Shipping_Zone $zone The shipping zone that has been loaded. * * @return void */ function wp_kama_woocommerce_shipping_zone_loaded_action( $zone ){ // action... }
- $zone(WC_Shipping_Zone)
- The shipping zone that has been loaded.
Где вызывается хук
woocommerce_shipping_zone_loaded
woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php 89
do_action( 'woocommerce_shipping_zone_loaded', $zone );
woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php 111
do_action( 'woocommerce_shipping_zone_loaded', $zone );