parse_request
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-includes/class-wp.php 418
do_action_ref_array( 'parse_request', array( &$this ) );
Where the hook is used in WordPress
wp-includes/default-filters.php 535
add_action( 'parse_request', 'rest_api_loaded' );