WordPress at Your Fingertips
function is not described

woocommerce_add_order_item_meta() WC 1.0

Deprecated from version 3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

No Hooks.


null. Nothing.


woocommerce_add_order_item_meta( $item_id, $meta_key, $meta_value, $unique );
$item_id (required)
$meta_key (required)
$meta_value (required)
$unique **
Default: false


Deprecated 3.0

Code of woocommerce_add_order_item_meta() WC 6.1.1

function woocommerce_add_order_item_meta( $item_id, $meta_key, $meta_value, $unique = false ) {
	wc_deprecated_function( __FUNCTION__, '3.0', 'wc_add_order_item_meta' );
	return wc_add_order_item_meta( $item_id, $meta_key, $meta_value, $unique );