WP_Query::is_day() WordPress Method
The WP_Query::is_day() function is used to check if the current page is a day archive. This function returns a boolean value (true or false).
WP_Query::is_day() #
Is the query for an existing day archive?
Return
(bool) Whether the query is for an existing day archive.
Source
File: wp-includes/class-wp-query.php
public function is_day() { return (bool) $this->is_day; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |