do_parse_request filter-hookWP 3.5.0

Filters whether to parse the request.


add_filter( 'do_parse_request', 'wp_kama_do_parse_request_filter', 10, 3 );

 * Function for `do_parse_request` filter-hook.
 * @param bool         $bool             Whether or not to parse the request.
 * @param WP           $wp               Current WordPress environment instance.
 * @param array|string $extra_query_vars Extra passed query variables.
 * @return bool
function wp_kama_do_parse_request_filter( $bool, $wp, $extra_query_vars ){

	// filter...
	return $bool;
Whether or not to parse the request.
Default: true
Current WordPress environment instance.
Extra passed query variables.


Since 3.5.0 Introduced.

Where the hook is called

wp-includes/class-wp.php 148
if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) ) {

Where the hook is used in WordPress

Usage not found.