WordPress at Your Fingertips
function is not described

WC_Order_Item_Shipping::get_method_title() public WC 1.0

Get title.

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

No Hooks.

Return

String.

Usage

$WC_Order_Item_Shipping = new WC_Order_Item_Shipping();
$WC_Order_Item_Shipping->get_method_title( $context );
$context(string)
View or edit context.
Default: 'view'

Code of WC_Order_Item_Shipping::get_method_title() WC 5.9.0

public function get_method_title( $context = 'view' ) {
	$method_title = $this->get_prop( 'method_title', $context );
	if ( 'view' === $context ) {
		return $method_title ? $method_title : __( 'Shipping', 'woocommerce' );
	} else {
		return $method_title;
	}
}