Used By
Used By | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::get_posts() | Retrieves an array of posts based on query variables. |
wp-includes/query.php: set_query_var() | Set query variable. |
Set query variable.
(string) (Required) Query variable key.
(mixed) (Required) Query variable value.
File: wp-includes/class-wp-query.php
public function set( $query_var, $value ) { $this->query_vars[ $query_var ] = $value; }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/set