WC_Settings_Shipping::get_shipping_methods()protectedWC 1.0

Get the currently available shipping methods. This method exists to ease unit testing.

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

Хуков нет.

Возвращает

Массив. Currently available shipping methods.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_shipping_methods();

Код WC_Settings_Shipping::get_shipping_methods() WC 8.7.0

protected function get_shipping_methods() {
	return WC()->shipping()->get_shipping_methods();
}