WP_Query::set() – Set query variable.

You appear to be a bot. Output may be restricted

Description

Sets the value of a query variable.

Usage

WP_Query::set( $query_var, $value );

Parameters

$query_var
( string ) required – Query variable key.
$value
( mixed ) required – Query variable value.

Returns

void

Source

File name: wordpress/wp-includes/class-wp-query.php
Lines:

1 to 3 of 3
  public function set( $query_var, $value ) {
    $this->query_vars[ $query_var ] = $value;
  }
 

 View on GitHub View on Trac