woocommerce_shipping_zone_method_status_toggled action-hookWC 1.0

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

WC_AJAX::shipping_zone_methods_save_changes()
woocommerce_shipping_zone_method_status_toggled
WC_REST_Shipping_Zone_Methods_V2_Controller::update_fields()
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'] );

Where the hook is used in WooCommerce

Usage not found.