WC_Order_Item_Coupon::offsetExists()
[\ReturnTypeWillChange]{} Это метод класса: WC_Order_Item_Coupon{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Order_Item_Coupon = new WC_Order_Item_Coupon(); $WC_Order_Item_Coupon->offsetExists( $offset );
- $offset (обязательный)
- -
Код WC_Order_Item_Coupon::offsetExists() WC Order Item Coupon::offsetExists WC 6.4.1
public function offsetExists( $offset ) { if ( in_array( $offset, array( 'discount_amount', 'discount_amount_tax' ), true ) ) { return true; } return parent::offsetExists( $offset ); }