Codex

Function Reference/remove query arg

Contents

Description

Removes an item or list from the query string.

Usage

<?php remove_query_arg$key$query ?>

Parameters

$key
(string|array) (required) Query key or keys to remove.
Default: None
$query
(boolean) (optional) When false uses the $_SERVER value.
Default: false

Return Values

(string) 
New URL query string.

Examples

Notes

Change Log

Since: 1.5.0

Source File

remove_query_arg() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.