WordPress at Your Fingertips
function is not described

wc_delete_order_item_meta() WC 1.0

WooCommerce Order Item Meta API - Delete term meta.

No Hooks.

Return

true|false.

Usage

wc_delete_order_item_meta( $item_id, $meta_key, $meta_value, $delete_all );
$item_id(int) (required)
Item ID.
$meta_key(string) (required)
Meta key.
$meta_value(string)
Meta value (default: '').
Default: ''
$delete_all(true|false)
Delete all meta data.
Default: false

Code of wc_delete_order_item_meta() WC 5.8.0

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