WP::remove_query_var( string $name )

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

Parameters Parameters


(string) (Required) Query variable name.

Top ↑

Source Source

File: wp-includes/class-wp.php

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

Top ↑

Changelog Changelog

Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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