Repository Forums Support Expiry dates for WooCommerce PRO Hiding Expiry dates to customer cart but Not to admin Reply To: Hiding Expiry dates to customer cart but Not to admin

#4896
Soft79
Keymaster

Yes, there is some work to do on the order meta handling.

For now, try replacing the following line in your snippet:

add_filter( ‘woocommerce_order_item_get_formatted_meta_data’, ‘unset_specific_order_item_meta_data’, 10, 2);

by:

add_filter( ‘woocommerce_order_item_get_formatted_meta_data’, ‘unset_specific_order_item_meta_data’, 20, 2);