do_parse_request filter-hookWP 3.5.0

Filters whether to parse the request.

Usage

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;
}
$bool(true|false)
Whether or not to parse the request.
Default: true
$wp(WP)
Current WordPress environment instance.
$extra_query_vars(array|string)
Extra passed query variables.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.