WP_Query::is_date
Determines whether the query is for an existing date archive.
Метод класса: WP_Query{}
Хуков нет.
Возвращает
true|false. Whether the query is for an existing date archive.
Использование
global $wp_query; $wp_query->is_date();
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_Query::is_date() WP Query::is date WP 6.9.1
public function is_date() {
return (bool) $this->is_date;
}