mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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.
Built from https://develop.svn.wordpress.org/trunk@25311 git-svn-id: http://core.svn.wordpress.org/trunk@25273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d24a3940de
commit
7af06e7ab3
@ -1887,6 +1887,8 @@ class WP_Query {
|
||||
}
|
||||
|
||||
$this->tax_query = new WP_Tax_Query( $tax_query );
|
||||
|
||||
do_action( 'parse_tax_query', $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user