WP::remove_query_var( string $name )

In this article

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

Parameters

$namestringrequired
Query variable name.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.