WordPress at Your Fingertips
function is not described

WC_Order_Item_Tax::offsetExists() public WC 1.0

OffsetExists for ArrayAccess.

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

No Hooks.

Return

true|false.

Usage

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

Code of WC_Order_Item_Tax::offsetExists() WC 5.6.0

public function offsetExists( $offset ) {
	if ( in_array( $offset, array( 'tax_amount', 'shipping_tax_amount' ), true ) ) {
		return true;
	}
	return parent::offsetExists( $offset );
}