WC_Order_Item_Tax::offsetExists( string $offset )
OffsetExists for ArrayAccess.
Description Description
Parameters Parameters
- $offset
-
(Required) Offset.
Return Return
(bool)
Source Source
File: includes/class-wc-order-item-tax.php
public function offsetExists( $offset ) { if ( in_array( $offset, array( 'tax_amount', 'shipping_tax_amount' ), true ) ) { return true; } return parent::offsetExists( $offset ); }