WP_Query::set( string $query_var, mixed $value )

Sets the value of a query variable.

Parameters Parameters


(string) (Required) Query variable key.


(mixed) (Required) Query variable value.

Top ↑

Source Source

File: wp-includes/class-wp-query.php

	public function set( $query_var, $value ) {
		$this->query_vars[ $query_var ] = $value;

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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