request
Filters the array of parsed query variables.
Usage
add_filter( 'request', 'wp_kama_request_filter' );
/**
* Function for `request` filter-hook.
*
* @param array $query_vars The array of requested query variables.
*
* @return array
*/
function wp_kama_request_filter( $query_vars ){
// filter...
return $query_vars;
}
- $query_vars(array)
- The array of requested query variables.
Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
wp-includes/class-wp.php 409
$this->query_vars = apply_filters( 'request', $this->query_vars );
Where the hook is used in WordPress
wp-includes/default-filters.php 584
add_filter( 'request', '_post_format_request' );