WP_Query::is_year() – Is the query for an existing year archive?

You appear to be a bot. Output may be restricted

Description

Is the query for an existing year archive?

Usage

$bool = WP_Query::is_year();

Parameters

Returns

bool Whether the query is for an existing year archive.

Source

File name: wordpress/wp-includes/class-wp-query.php
Lines:

1 to 3 of 3
  public function is_year() {
    return (bool) $this->WP_Query::is_year;
  }
 

 View on GitHub View on Trac