WordPress at a glance
function is not described

WC_Abstract_Legacy_Order::expand_item_meta() public WC 1.0

Deprecated from version 3.0.0 Item meta no longer expanded due to new order item classes. This function now does nothing to avoid data breakage.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Expand item meta into the $item array.

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

No Hooks.

Return

Array.

Usage

$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();
$WC_Abstract_Legacy_Order->expand_item_meta( $item );
$item(array) (required)
before expansion.

Changelog

Deprecated Since 3.0.0 Item meta no longer expanded due to new order item
classes. This function now does nothing to avoid data breakage.

Code of WC_Abstract_Legacy_Order::expand_item_meta() WC 5.0.0

<?php
public function expand_item_meta( $item ) {
	wc_deprecated_function( 'WC_Order::expand_item_meta', '3.0' );
	return $item;
}