WordPress at Your Fingertips
function is not described

wc_update_order_item_meta() WC 1.0

WooCommerce Order Item Meta API - Update term meta.

No Hooks.

Return

true|false.

Usage

wc_update_order_item_meta( $item_id, $meta_key, $meta_value, $prev_value );
$item_id(int) (required)
Item ID.
$meta_key(string) (required)
Meta key.
$meta_value(string) (required)
Meta value.
$prev_value(string)
Previous value (default: '').
Default: ''

Code of wc_update_order_item_meta() WC 5.8.0

function wc_update_order_item_meta( $item_id, $meta_key, $meta_value, $prev_value = '' ) {
	$data_store = WC_Data_Store::load( 'order-item' );
	if ( $data_store->update_metadata( $item_id, $meta_key, $meta_value, $prev_value ) ) {
		WC_Cache_Helper::invalidate_cache_group( 'object_' . $item_id ); // Invalidate cache.
		return true;
	}
	return false;
}