woocommerce_shipping_zone_method_added

The WooCommerce woocommerce shipping zone method added hook.

Description

do_action( 'woocommerce_shipping_zone_method_added', (unknown) $instance_id, (unknown) $type, (unknown) $this_get_id ); 

Parameters (3)

0. $instance_id (unknown)
The instance id.
1. $type (unknown)
The type.
2. $this_get_id (unknown)
The this get id.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_shipping_zone_method_added', $instance_id, $type, $this_get_id ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_shipping_zone_method_added callback 
  2. function action_woocommerce_shipping_zone_method_added( $instance_id, $type, $this_get_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_shipping_zone_method_added', 'action_woocommerce_shipping_zone_method_added', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_shipping_zone_method_added', 'action_woocommerce_shipping_zone_method_added', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/class-wc-shipping-zone.php  
  1. do_action( 'woocommerce_shipping_zone_method_added', $instance_id, $type, $this->get_id() );