-
Benefits of posts_clauses filter or how to easily hook into WP_Query
In this post we’ll look at how we can utilize the posts_clauses filter to inject SQL into the WP_Query. But before we get into more details, a bit of background on how I came upon this filter. I have a personal plugin that I’ve created in 2015. And it exports all WooCommerce products into an…