WC_Order_Item_Fee::offsetExists( string $offset )

OffsetExists for ArrayAccess


Description Description


Parameters Parameters

$offset

(Required) Offset.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-order-item-fee.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.