parse_request action-hookWP 2.1.0

Fires once all query variables for the current request have been parsed.

Usage

add_action( 'parse_request', 'wp_kama_parse_request_action' );

/**
 * Function for `parse_request` action-hook.
 * 
 * @param WP $wp Current WordPress environment instance (passed by reference).
 *
 * @return void
 */
function wp_kama_parse_request_action( $wp ){

	// action...
}
$wp(WP)
Current WordPress environment instance (passed by reference).

Changelog

Since 2.1.0 Introduced.

Where the hook is called

WP::parse_request()
parse_request
wp-includes/class-wp.php 398
do_action_ref_array( 'parse_request', array( &$this ) );

Where the hook is used in WordPress

wp-includes/default-filters.php 507
add_action( 'parse_request', 'rest_api_loaded' );