I was trying to exclude product from coupons in WooCommerce and tried out a code I found on stackoverflow by another user. The code did what I wanted but upon trying to add a new product to my woocommerce I found out that the add product page is totally ruined.
You cannot click on anything in that page and the product tabs where you add description etc are all gone. I commented out the code I had previously pasted in functions.php but still the problem remains. I tried restore my files from a previous backup but still the problem remain. How can I revert this, im getting very desperate.
Link where I found the code: Exclude product from all coupons in WooCommerce
Thankful for all the help I can get.