WC_Order_Item_Tax::offsetExists
OffsetExists for ArrayAccess.
Method of the class: WC_Order_Item_Tax{}
No Hooks.
Returns
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() WC Order Item Tax::offsetExists code WC 10.8.1
public function offsetExists( $offset ) {
if ( in_array( $offset, array( 'tax_amount', 'shipping_tax_amount' ), true ) ) {
return true;
}
return parent::offsetExists( $offset );
}