WP_Query::query( string|array $query )
Sets up the ClassicPress query by parsing query string.
Parameters
- $query
-
(Required) URL query string or array of query arguments.
Return
(array) List of posts.
Source
File: wp-includes/class-wp-query.php
public function query( $query ) {
$this->init();
$this->query = $this->query_vars = wp_parse_args( $query );
return $this->get_posts();
}
Changelog
Version | Description |
---|---|
WP-1.5.0 | Introduced. |