WC_Abstract_Order::get_shipping_method()publicWC 1.0

Gets formatted shipping method title.

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

Хуки из метода

Возвращает

Строку.

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

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_shipping_method();

Код WC_Abstract_Order::get_shipping_method() WC 8.7.0

public function get_shipping_method() {
	$names = array();
	foreach ( $this->get_shipping_methods() as $shipping_method ) {
		$names[] = $shipping_method->get_name();
	}
	return apply_filters( 'woocommerce_order_shipping_method', implode( ', ', $names ), $this );
}