WP_Query::is_time() WordPress Method
The WP_Query::is_time() method is used to determine if the query is for a time-related post. Time-related posts include posts with the post_type of 'time' and posts with the 'is_time' attribute set to true.
WP_Query::is_time() #
Is the query for a specific time?
Return
(bool) Whether the query is for a specific time.
Source
File: wp-includes/class-wp-query.php
public function is_time() { return (bool) $this->is_time; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |