Title: Hook not working &#8211; pre_get_posts
Last modified: February 14, 2023

---

# Hook not working – pre_get_posts

 *  Resolved [arumugamact](https://wordpress.org/support/users/arumugamact/)
 * (@arumugamact)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/hook-not-working-pre_get_posts/)
 * I wrote snippet with pre_get_posts hook to customize default product query, If
   shop engine plugin enabled that time hook pre_get_posts is not working.
   How to
   use pre_get_posts hook with shop engine
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhook-not-working-pre_get_posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Moin Munna](https://wordpress.org/support/users/moinmunna/)
 * (@moinmunna)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/hook-not-working-pre_get_posts/#post-16493650)
 * Hello [@arumugamact](https://wordpress.org/support/users/arumugamact/),
 * Extremely sorry for the delayed response!
 * Be assured that the pre_get_posts hook works perfectly with Shopengine plugin.
   There may a wrong step in the process you are tring to add the snippet. Can you
   please share the code and let us know the steps you are following to add it? 
   
   We’ll have a quick look and give you an update ASAP.
 * Regards,
   Moin

Viewing 1 replies (of 1 total)

 The topic ‘Hook not working – pre_get_posts’ is closed to new replies.

 * ![](https://ps.w.org/shopengine/assets/icon-256x256.gif?rev=2505061)
 * [ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets](https://wordpress.org/plugins/shopengine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shopengine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shopengine/)
 * [Active Topics](https://wordpress.org/support/plugin/shopengine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shopengine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shopengine/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Moin Munna](https://wordpress.org/support/users/moinmunna/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/hook-not-working-pre_get_posts/#post-16493650)
 * Status: resolved