WP::add_query_var( string $qv )

Add name to list of public query variables.


Description Description


Parameters Parameters

$qv

(string) (Required) Query variable name.


Top ↑

Source Source

File: wp-includes/class-wp.php

	public function add_query_var( $qv ) {
		if ( ! in_array( $qv, $this->public_query_vars ) ) {
			$this->public_query_vars[] = $qv;
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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