Warning: This method has been deprecated.
WC_Order_Item_Fee::offsetSet( string $offset, mixed $value )
OffsetSet for ArrayAccess/Backwards compatibility.
Description Description
Parameters Parameters
- $offset
-
(Required) Offset.
- $value
-
(Required) Value.
Source Source
File: includes/class-wc-order-item-fee.php
314 315 316 317 318 319 320 321 322 323 | public function offsetSet( $offset , $value ) { if ( 'line_total' === $offset ) { $offset = 'total' ; } elseif ( 'line_tax' === $offset ) { $offset = 'total_tax' ; } elseif ( 'line_tax_data' === $offset ) { $offset = 'taxes' ; } parent::offsetSet( $offset , $value ); } |
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |