WordPress at Your Fingertips
function is not described

WC_Order_Item_Product::offsetExists() public WC 1.0

OffsetExists for ArrayAccess.

{} It's a 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.

Code of WC_Order_Item_Product::offsetExists() WC 5.6.0

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