WordPress at a glance
function is not described

WP_Query::__construct() WP 1.5.0

Constructor.

Sets up the WordPress query, if parameter is not empty.

This is a method of the class: WP_Query

No Hooks.

Return

Nothing (null).

Usage

$WP_Query = new WP_Query();
$var = $WP_Query->__construct( $query );
$query(string/array)
URL query string or array of vars.
Default: ''

Code of WP Query:: construct: wp-includes/class-wp-query.php WP 5.2

<?php
public function __construct( $query = '' ) {
	if ( ! empty( $query ) ) {
		$this->query( $query );
	}
}