WP_Query::is_sitemap
Determines whether the query is for a sitemap.
Метод класса: WP_Query{}
Хуков нет.
Возвращает
bool. Whether the query is for a sitemap.
Использование
global $wp_query; $wp_query->is_sitemap(): bool;
Список изменений
| С версии 7.1.0 | Введена. |
Код WP_Query::is_sitemap() WP Query::is sitemap WP 7.1.2
public function is_sitemap(): bool {
return $this->is_sitemap;
}