Save the values with an underscore prefix, that way it won't be displayed, just saved. Like so: $item->add_meta_data('_hidden_field', '123', ...
Hiding the Item Meta Data. If you're storing item meta data for internal use only, you can hide them through the filter ...
I am using some custom Item Meta for products sold on my WooCommerce store. I am looking for a way to hide the item meta from showing up on ...
You'll want to add to the hidden item meta array as such: add_filter(' woocommerce_hidden_order_itemmeta', array($this, 'hidden_order_itemmeta'), 50); ...
It sounds like you are wanting to hide certain meta data fields on the order ...
* @param array $hidden_meta Array of all meta data to hide. *. * @return array. */ . function hide_my_item_meta ...
When the value of this Meta is found in the Item name (product name), this meta is hidden from view in order admin. The original code was to hide ...
blackandwhiteshades.wordpress.com
To Customize the order meta box, what i am going to do here is 1. Hide the default display of meta values by calling the following hook: 2.Now ...
The only way to hide these will be to make them hidden meta fields,
WooCommerce hide order item meta from front end (not admin , Hiding the Item Meta Data. If you're storing item meta data for internal use only, ...