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 6.9.1

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 );
}