WC_Shipping_Zone_Data_Store_Interface::add_method()
Add a shipping method to a zone.
Method of the class: WC_Shipping_Zone_Data_Store_Interface{}
No Hooks.
Return
Int
. Instance ID
Usage
$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.
WC_Shipping_Zone_Data_Store_Interface::add_method() WC Shipping Zone Data Store Interface::add method code WC 9.2.3
public function add_method( $zone_id, $type, $order );