WC_Order_Item_Fee::offsetExists()publicWC 1.0ReturnTypeWillChange

OffsetExists for ArrayAccess

Method of the class: WC_Order_Item_Fee{}

No Hooks.

Return

true|false.

Usage

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

WC_Order_Item_Fee::offsetExists() code WC 8.9.0

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