WP_Query::__construct( string|array $query = '' )
Constructor.
Description
Sets up the ClassicPress query, if parameter is not empty.
Parameters
- $query
-
(string|array) (Optional) URL query string or array of vars.
Default value: ''
Source
File: wp-includes/class-wp-query.php
public function __construct( $query = '' ) {
if ( ! empty( $query ) ) {
$this->query( $query );
}
}
Changelog
Version | Description |
---|---|
WP-1.5.0 | Introduced. |