removable_query_args
Filter HookDescription
Filters the list of query variable names to remove.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1275 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$removable_query_args
|
An array of query variable names to remove from a URL. |
Usage Examples
Basic Usage
<?php
// Hook into removable_query_args
add_filter('removable_query_args', 'my_custom_filter', 10, 1);
function my_custom_filter($removable_query_args) {
// Your custom filtering logic here
return $removable_query_args;
}
Source Code Context
wp-includes/functions.php:1275
- How this hook is used in WordPress core
<?php
1270 *
1271 * @since 4.2.0
1272 *
1273 * @param string[] $removable_query_args An array of query variable names to remove from a URL.
1274 */
1275 return apply_filters( 'removable_query_args', $removable_query_args );
1276 }
1277
1278 /**
1279 * Walks the array while sanitizing the contents.
1280 *
PHP Documentation
<?php
/**
* Filters the list of query variable names to remove.
*
* @since 4.2.0
*
* @param string[] $removable_query_args An array of query variable names to remove from a URL.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.