WC_Order_Item_Product::offsetExists()publicWC 1.0

[\ReturnTypeWillChange]

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Order_Item_Product::offsetExists() WC 6.8.2

public function offsetExists( $offset ) {
	if ( in_array( $offset, array( 'line_subtotal', 'line_subtotal_tax', 'line_total', 'line_tax', 'line_tax_data', 'item_meta_array', 'item_meta', 'qty' ), true ) ) {
		return true;
	}
	return parent::offsetExists( $offset );
}