From 9ece28e5454334a11b12d03ff9b883cbe9fdae28 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 10 Sep 2013 02:35:26 +0000 Subject: [PATCH] Add an action at the end of `WP_Query::parse_tax_query()` called (wait for it...) `parse_tax_query` which will enable developers to alter `$this->tax_query->queries` before SQL is generated. `pre_get_posts` is too early for many scenarios. git-svn-id: https://develop.svn.wordpress.org/trunk@25311 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 43be546c35..322af09e69 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -1887,6 +1887,8 @@ class WP_Query { } $this->tax_query = new WP_Tax_Query( $tax_query ); + + do_action( 'parse_tax_query', $this ); } /**