Thanks for the fixes so far Rose! You’re a star!
Like many others I am having this problem with WooCommerce Uncategorized category appearing, the category has no products in but continues to appear.
I tried adding the code in to hide this but it comes up saying it’s invalid.
Any suggestions on fixing this?