WordPress at Your Fingertips
function is not described

WC_Order_Item_Shipping::offsetExists() public WC 1.0

Offset exists: for ArrayAccess.

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

No Hooks.

Return

true|false.

Usage

$WC_Order_Item_Shipping = new WC_Order_Item_Shipping();
$WC_Order_Item_Shipping->offsetExists( $offset );
$offset(string) (required)
Key.

Code of WC_Order_Item_Shipping::offsetExists() WC 5.9.0

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