WC_Shipping_Zone_Data_Store_Interface::get_methods()publicWC 1.0

Get a list of shipping methods for a specific zone.

Метод класса: WC_Shipping_Zone_Data_Store_Interface{}

Хуков нет.

Возвращает

Массив. Array of objects containing method_id, method_order, instance_id, is_enabled

Использование

$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) (обязательный)
Zone ID.
$enabled_only(true|false) (обязательный)
True to request enabled methods only.

Код WC_Shipping_Zone_Data_Store_Interface::get_methods() WC 8.7.0

public function get_methods( $zone_id, $enabled_only );