parse_tax_query
Action HookDescription
Fires after taxonomy-related query vars have been parsed.Hook Information
File Location |
wp-includes/class-wp-query.php
View on GitHub
|
Hook Type | Action |
Line Number | 1410 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Query
|
$query
|
The WP_Query instance. |
Usage Examples
Basic Usage
<?php
// Hook into parse_tax_query
add_action('parse_tax_query', 'my_custom_function', 10, 1);
function my_custom_function($query) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-query.php:1410
- How this hook is used in WordPress core
<?php
1405 *
1406 * @since 3.7.0
1407 *
1408 * @param WP_Query $query The WP_Query instance.
1409 */
1410 do_action( 'parse_tax_query', $this );
1411 }
1412
1413 /**
1414 * Generates SQL for the WHERE clause based on passed search terms.
1415 *
PHP Documentation
<?php
/**
* Fires after taxonomy-related query vars have been parsed.
*
* @since 3.7.0
*
* @param WP_Query $query The WP_Query instance.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-query.php
Related Hooks
Related hooks will be displayed here in future updates.