WC_Shipping_Zone_Data_Store_Interface::add_method()
Add a shipping method to a zone.
Метод класса: WC_Shipping_Zone_Data_Store_Interface{}
Хуков нет.
Возвращает
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) (обязательный)
- Zone ID.
- $type(строка) (обязательный)
- Method Type/ID.
- $order(int) (обязательный)
- Method Order ID.
Код WC_Shipping_Zone_Data_Store_Interface::add_method() WC Shipping Zone Data Store Interface::add method WC 8.7.0
public function add_method( $zone_id, $type, $order );