WC_Order_Item_Shipping::offsetSet()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->offsetSet( $offset, $value );
$offset (required)
-
$value (required)
-

Code of WC_Order_Item_Shipping::offsetSet() WC 6.8.2

public function offsetSet( $offset, $value ) {
	wc_deprecated_function( 'WC_Order_Item_Shipping::offsetSet', '4.4.0', '' );
	if ( 'cost' === $offset ) {
		$offset = 'total';
	}
	parent::offsetSet( $offset, $value );
}