Skip to content

Tag: woocommerce

Hide item from array

I am showing the product categories on the WooCommerce thank you page using this piece of code: The code above shows all categories, but I need to hide a specific category. Is it possible to hide a specific category by ID in the above code? Answer Woocommerce uses main get_categories() function from WordPress…