WordPress at Your Fingertips
function is not described

WC_Order_Item_Tax::get_label() public WC 1.0

Get label.

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

No Hooks.

Return

String.

Usage

$WC_Order_Item_Tax = new WC_Order_Item_Tax();
$WC_Order_Item_Tax->get_label( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Code of WC_Order_Item_Tax::get_label() WC 5.6.0

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