Make WordPress Core

Changeset 25311


Ignore:
Timestamp:
09/10/2013 02:35:26 AM (13 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r25291 r25311  
    18881888
    18891889                $this->tax_query = new WP_Tax_Query( $tax_query );
     1890
     1891                do_action( 'parse_tax_query', $this );
    18901892        }
    18911893
Note: See TracChangeset for help on using the changeset viewer.