WordPress at a glance
function is not described

WP::remove_query_var() public WP 4.5.0

Removes a query variable from a list of public query variables.

{} It's a method of the class: WP{}

No Hooks.

Return

null. Nothing.

Usage

global $wp;
$wp->remove_query_var( $name );
$name(string) (required)
Query variable name.

Changelog

Since 4.5.0 Introduced.

Code of WP::remove_query_var() WP 5.7.1

<?php
public function remove_query_var( $name ) {
	$this->public_query_vars = array_diff( $this->public_query_vars, array( $name ) );
}