WC_Order_Item_Shipping::offsetGet()
Offset get: for ArrayAccess/Backwards compatibility.
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.
WC_Order_Item_Shipping::offsetGet() WC Order Item Shipping::offsetGet code WC 9.4.2
public function offsetGet( $offset ) { if ( 'cost' === $offset ) { $offset = 'total'; } return parent::offsetGet( $offset ); }