WC_Order_Item_Tax::get_name()publicWC 1.0

Get rate code/name.

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_name( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Order_Item_Tax::get_name() code WC 8.6.1

public function get_name( $context = 'view' ) {
	return $this->get_rate_code( $context );
}