WC_Shipping_Zone_Data_Store_Interface::get_methods()publicWC 1.0

Get a list of shipping methods for a specific zone.

Method of the class: WC_Shipping_Zone_Data_Store_Interface{}

No Hooks.

Return

Array. Array of objects containing method_id, method_order, instance_id, is_enabled

Usage

$WC_Shipping_Zone_Data_Store_Interface = new WC_Shipping_Zone_Data_Store_Interface();
$WC_Shipping_Zone_Data_Store_Interface->get_methods( $zone_id, $enabled_only );
$zone_id(int) (required)
Zone ID.
$enabled_only(true|false) (required)
True to request enabled methods only.

WC_Shipping_Zone_Data_Store_Interface::get_methods() code WC 8.7.0

public function get_methods( $zone_id, $enabled_only );