Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

remove_query_arg()

3 tags 1 category

remove_query_arg() — Removes an item or items from a query string. Important: The return value of remove_query_arg() is not escaped by default. Output should be late-escaped with esc_url() or similar to help prevent vulnerability to cross-site scripting (XSS) attacks.

Inputs: $key (string|string[]): Query key or keys to remove. $query (false|string): Optional. When false uses the current URL. Default false.

Returns string: New URL query string.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…