WC_Order_Item_Tax::offsetExists()publicWC 1.0ReturnTypeWillChange

OffsetExists for ArrayAccess.

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.

WC_Order_Item_Tax::offsetExists() code WC 8.7.0

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