removable_query_args
Filters the list of query variable names to remove.
Usage
add_filter( 'removable_query_args', 'wp_kama_removable_query_args_filter' ); /** * Function for `removable_query_args` filter-hook. * * @param string[] $removable_query_args An array of query variable names to remove from a URL. * * @return string[] */ function wp_kama_removable_query_args_filter( $removable_query_args ){ // filter... return $removable_query_args; }
- $removable_query_args(string[])
- An array of query variable names to remove from a URL.
Changelog
Since 4.2.0 | Introduced. |
Where the hook is called
removable_query_args
wp-includes/functions.php 1266
return apply_filters( 'removable_query_args', $removable_query_args );