woocommerce_shipping_zone_method_status_toggled
Usage
add_action( 'woocommerce_shipping_zone_method_status_toggled', 'wp_kama_woocommerce_shipping_zone_method_status_toggled_action', 10, 4 ); /** * Function for `woocommerce_shipping_zone_method_status_toggled` action-hook. * * @param $instance_id * @param $method_id * @param $zone_id * @param $is_enabled * * @return void */ function wp_kama_woocommerce_shipping_zone_method_status_toggled_action( $instance_id, $method_id, $zone_id, $is_enabled ){ // action... }
- $instance_id
- -
- $method_id
- -
- $zone_id
- -
- $is_enabled
- -
Where the hook is called
woocommerce_shipping_zone_method_status_toggled
woocommerce_shipping_zone_method_status_toggled
woocommerce/includes/class-wc-ajax.php 3353
do_action( 'woocommerce_shipping_zone_method_status_toggled', $instance_id, $method_id, $zone_id, $is_enabled );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php 332
do_action( 'woocommerce_shipping_zone_method_status_toggled', $instance_id, $method->id, $request['zone_id'], $request['enabled'] );