WP_Query::set( string $query_var, mixed $value )
Set query variable.
Description Description
Parameters Parameters
- $query_var
-
(string) (Required) Query variable key.
- $value
-
(mixed) (Required) Query variable value.
Source Source
File: wp-includes/class-wp-query.php
public function set( $query_var, $value ) { $this->query_vars[ $query_var ] = $value; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |