Core Function
View Source on Trac ↗ _remove_qs_args_if_not_in_url()
_remove_qs_args_if_not_in_url( mixed $query_string, array $args_to_check, mixed $url ) Removes arguments from a query string if they are not present in a URL
Parameters 3 required
| Name / Type | Description |
|---|---|
| string | $query_string Required |
| array | $args_to_check Required |
| string | $url Required |
Return Value
(string)
The altered query string
Function Information
Since Version
3.4.0
Source File
wp-includes/canonical.php
Advertisement