WordPress at Your Fingertips
function is not described

WC_Order_Item_Tax::offsetGet() public WC 1.0

O for ArrayAccess/Backwards compatibility.

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

No Hooks.

Return

Mixed.

Usage

$WC_Order_Item_Tax = new WC_Order_Item_Tax();
$WC_Order_Item_Tax->offsetGet( $offset );
$offset(string) (required)
Offset.

Code of WC_Order_Item_Tax::offsetGet() WC 5.7.0

public function offsetGet( $offset ) {
	if ( 'tax_amount' === $offset ) {
		$offset = 'tax_total';
	} elseif ( 'shipping_tax_amount' === $offset ) {
		$offset = 'shipping_tax_total';
	}
	return parent::offsetGet( $offset );
}