-1

I want to hide / remove the following highlighted line (row) from all orders (past and current). enter image description here

Follow is the code which is displayed on browser console. enter image description here

It's just creating duplicate variation entries everywhere (even invoices) which I don't require. Just so you know, I'm using OpenPOS plugin.

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

0

put this to your theme/functions.php to hide that

 add_filter('woocommerce_hidden_order_itemmeta',function($meta){
     $meta[] = 'op_item_details';
     return $meta;
 },101,1);
Vu Anh
  • 209
  • 2
  • 7
  • Thank you so much. It's working on dashboard, however it's not reflecting on PDF Invoice. Dashboard : https://i.postimg.cc/VNS2WgKj/screenshot-2023-04-19-10-46-09.png PDF Invoice : https://i.postimg.cc/85M3q5Qc/Screenshot-2023-04-19-10-42-57-AM.png – Tormenturator Apr 19 '23 at 14:52
  • it should check the pdf invouce you are using to ignore display on it . – Vu Anh Apr 20 '23 at 02:23