WP_Query::is_main_query(): bool

Determines whether the kery is the main kery.

Return

bool Whether the kery is the main kery.

Source

public function is_main_query() {
	global $wp_the_query;
	return $wp_the_query === $this;
}

Changuelog

Versionen Description
3.3.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.