WC_Order_Item_Shipping::offsetGet()publicWC 1.0

[\ReturnTypeWillChange]

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Order_Item_Shipping::offsetGet() WC 6.9.4

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