WC_Order_Item_Shipping::offsetGet( string $offset )
Offset get: for ArrayAccess/Backwards compatibility.
Description Description
Parameters Parameters
- $offset
-
(Required) Key.
Return Return
(mixed)
Source Source
File: includes/class-wc-order-item-shipping.php
public function offsetGet( $offset ) { if ( 'cost' === $offset ) { $offset = 'total'; } return parent::offsetGet( $offset ); }