Hello all,
I want to add URL parameter on product categories dynamically, for example:
by default you have product category url like:
example.com/product-category/furniture/living/armchairs/
Now I want to append:
example.com/product-category/furniture/living/armchairs/?fwp_product_categories=armchairs (append the last category dynamically).
I want to add it only on product-category only, I have tried add_query_arg but I am not able to do it for product-category.
https://pippinsplugins.com/the-add_query_arg-helper-function/
Any help will be appreciated.
Thank you