WOOF - WooCommerce Products Filter


woof_husky_query_post__in

From v.2.2.9/v.1.2.9

  • There are two Husky filter modes:
    • adding a search result with post__in (enabled by default). The advantage of this mode is reliability, because the search takes place in a separate query and all JOINs will not conflict with the main query.
    • the second one (if you pass false on the hook) – works with the main request and adds it in the old fashioned way via post_where. Pros: does not increase the number of queries to the database.
    • add_filter('woof_husky_query_post__in', function ($do) {
          return false;
      });