parse_query action-hookWP 1.5.0

Fires after the main query vars have been parsed.

Usage

add_action( 'parse_query', 'wp_kama_parse_query_action' );

/**
 * Function for `parse_query` action-hook.
 * 
 * @param WP_Query $query The WP_Query instance (passed by reference).
 *
 * @return void
 */
function wp_kama_parse_query_action( $query ){

	// action...
}
$query(WP_Query)
The WP_Query instance (passed by reference).

Changelog

Since 1.5.0 Introduced.

Where the hook is called

WP_Query::parse_query()
parse_query
wp-includes/class-wp-query.php 1140
do_action_ref_array( 'parse_query', array( &$this ) );

Where the hook is used in WordPress

Usage not found.