WordPress at a glance
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.

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.

Code of WC_Shipping_Zone_Data_Store_Interface::add_method() WC 5.0.0

<?php
public function add_method( $zone_id, $type, $order );