Sets up the WordPress query by parsing query string.
Description
See also
- WP_Query::parse_query(): for all available arguments.
Parameters
$query
string|arrayrequired- URL query string or array of query arguments.
Source
public function query( $query ) {
$this->init();
$this->query = wp_parse_args( $query );
$this->query_vars = $this->query;
return $this->get_posts();
}
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.