Hide Categories for Some Users
-
I am developing a custom plugin that needs to dynamically filter the products displayed in the Ultimate Product Catalogue (UPC) based on the logged-in user’s settings. The goal is to restrict product visibility by category on a per-user basis.
I am using the
[product-catalogue]shortcode on a standard WordPress page, butpre_get_postsdoes not seem to affect the query.Could you provide any available hooks or filters that would allow an external plugin to:
- Modify the UPC product query before it retrieves products?
- Filter products by category dynamically?
- Intercept or modify how the shortcode fetches products?
I would prefer to use existing hooks rather than modifying UPC directly. Any guidance on the best approach would be greatly appreciated.
The page I need help with: [log in to see the link]
The topic ‘Hide Categories for Some Users’ is closed to new replies.