WP::add_query_var

Advertisement

Summery Summery

Add name to list of public query variables.

Syntax Syntax

WP::add_query_var( string $qv )

Parameters Parameters

$qv

(Required) Query variable name.

Source Source

File: wp-includes/class-wp.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply