Filtering WooCommerce Products by $_GET

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Filtering WooCommerce Products by $_GET



What I need to be able to do is apply a value for an attribute in the URL, so only the products match that attribute are displayed. I don't want to do any widgets or other visible filters on the page.



For this I presume I would need to use one of the webhooks, and filtering out all products that are about to be displayed.



Can anyone advise which hook will be best in this case and a simple explanation on how the triggered function will return the new array of products?



Thanks in advance!









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty