WC_Order_Item_Coupon::offsetExists()publicWC 1.0

[\ReturnTypeWillChange]

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item_Coupon = new WC_Order_Item_Coupon();
$WC_Order_Item_Coupon->offsetExists( $offset );
$offset (required)
-

Code of WC_Order_Item_Coupon::offsetExists() WC 6.6.1

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