WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Шаблоны сайтов на русском
функция не описана

WP_Query::init() WP 1.5.0

Initiates object properties and sets default values.

Это метод класса: WP_Query

Хуков нет.

Возвращает

Ничего (null).

Использование

$WP_Query = new WP_Query();
$var = $WP_Query->init();

Код WP Query::init: wp-includes/class-wp-query.php VER 5.1.1

<?php
public function init() {
	unset( $this->posts );
	unset( $this->query );
	$this->query_vars = array();
	unset( $this->queried_object );
	unset( $this->queried_object_id );
	$this->post_count   = 0;
	$this->current_post = -1;
	$this->in_the_loop  = false;
	unset( $this->request );
	unset( $this->post );
	unset( $this->comments );
	unset( $this->comment );
	$this->comment_count         = 0;
	$this->current_comment       = -1;
	$this->found_posts           = 0;
	$this->max_num_pages         = 0;
	$this->max_num_comment_pages = 0;

	$this->init_query_flags();
}