WordPress at Your Fingertips
function is not described

WC_Order_Item_Shipping::offsetGet() public WC 1.0

Offset get: for ArrayAccess/Backwards compatibility.

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

No Hooks.

Return

Mixed.

Usage

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

Code of WC_Order_Item_Shipping::offsetGet() WC 5.9.0

public function offsetGet( $offset ) {
	if ( 'cost' === $offset ) {
		$offset = 'total';
	}
	return parent::offsetGet( $offset );
}