WordPress at Your Fingertips
function is not described

WC_Shipping_Zone_Data_Store_Interface::add_method() public WC 1.0

Add a shipping method to a zone.

{} It's a method of the class: WC_Shipping_Zone_Data_Store_Interface{}

No Hooks.


Int. Instance ID


$WC_Shipping_Zone_Data_Store_Interface = new WC_Shipping_Zone_Data_Store_Interface();
$WC_Shipping_Zone_Data_Store_Interface->add_method( $zone_id, $type, $order );
$zone_id(int) (required)
Zone ID.
$type(string) (required)
Method Type/ID.
$order(int) (required)
Method Order ID.

Code of WC_Shipping_Zone_Data_Store_Interface::add_method() WC 5.8.0

public function add_method( $zone_id, $type, $order );