WC_Order_Item_Product::offsetExists()publicWC 1.0ReturnTypeWillChange

OffsetExists for ArrayAccess.

Method of the class: WC_Order_Item_Product{}

No Hooks.

Return

true|false.

Usage

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

WC_Order_Item_Product::offsetExists() code WC 8.6.1

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 );
}