request
Filter HookDescription
Filters the array of parsed query variables.Hook Information
File Location |
wp-includes/class-wp.php
View on GitHub
|
Hook Type | Filter |
Line Number | 409 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$query_vars
|
The array of requested query variables. |
Usage Examples
Basic Usage
<?php
// Hook into request
add_filter('request', 'my_custom_filter', 10, 1);
function my_custom_filter($query_vars) {
// Your custom filtering logic here
return $query_vars;
}
Source Code Context
wp-includes/class-wp.php:409
- How this hook is used in WordPress core
<?php
404 *
405 * @since 2.1.0
406 *
407 * @param array $query_vars The array of requested query variables.
408 */
409 $this->query_vars = apply_filters( 'request', $this->query_vars );
410
411 /**
412 * Fires once all query variables for the current request have been parsed.
413 *
414 * @since 2.1.0
PHP Documentation
<?php
/**
* Filters the array of parsed query variables.
*
* @since 2.1.0
*
* @param array $query_vars The array of requested query variables.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/class-wp.php
Related Hooks
Related hooks will be displayed here in future updates.