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
This commit is contained in:
Scott Taylor 2013-09-10 02:35:26 +00:00
parent 14e44dcd05
commit 9ece28e545

View File

@ -1887,6 +1887,8 @@ class WP_Query {
}
$this->tax_query = new WP_Tax_Query( $tax_query );
do_action( 'parse_tax_query', $this );
}
/**