woocommerce_shipping_zone_method_deleted

woocommerce_shipping_zone_method_deleted

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_shipping_zone_method_deleted') is found 2 times:

  • /includes/class-wc-ajax.php line 3321
    								'id'     => 'zone_method',
    								'action' => 'delete',
    							)
    						);
    						do_action( 'woocommerce_shipping_zone_method_deleted', $instance_id, $method_id, $zone_id );
    					}
    					continue;
    				}
    
    				$method_data = array_intersect_key(
    					$data,
    
  • /includes/class-wc-shipping-zone.php line 455
    		$method = $this->data_store->get_method( $instance_id );
    
    		if ( $method ) {
    			$this->data_store->delete_method( $instance_id );
    			do_action( 'woocommerce_shipping_zone_method_deleted', $instance_id, $method->method_id, $this->get_id() );
    		}
    
    		WC_Cache_Helper::get_transient_version( 'shipping', true );
    
    		return true;
    	}