I need to run a code when the subcategory listing page loads in a woocommerce wordpress site.
The subcategory listing page has route as'
/product-category/{catgeory}/{sub-category}.
I need a filter which I can hook upon when this page loads and run a code. I could also run the code in the template file of the route. But I can't find it. Can anyone help?