WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_shipping_method() public WC 1.0

Gets formatted shipping method title.

{} It's a method of the class: WC_Abstract_Order{}

Hooks from the method

Return

String.

Usage

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

Code of WC_Abstract_Order::get_shipping_method() WC 5.8.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 );
}