WP_Query::is_year(): bool

In this article

Determines whether the query is for an existing year archive.

Return

bool Whether the query is for an existing year archive.

Source

public function is_year() {
	return (bool) $this->is_year;
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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