WC_Order_Item_Tax::offsetExists()
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() WC Order Item Tax::offsetExists code WC 9.8.2
public function offsetExists( $offset ) { if ( in_array( $offset, array( 'tax_amount', 'shipping_tax_amount' ), true ) ) { return true; } return parent::offsetExists( $offset ); }