How to override pre_get_posts in search listings

Is there a way how to override pre_get_posts in search listings query and filter by vendors (I have vendor ids)?

Vendor IDs are set in post_parent field for listings so you can alter the WP_Query to set there parent IDs and filter listings this way.

Hope this helps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.