WP_Query::is_robots() public WP 3.1.0
Is the query for the robots.txt file?
{} Это метод класса: WP_Query{}
Хуков нет.
Возвращает
true/false. Whether the query is for the robots.txt file.
Использование
global $wp_query; $wp_query->is_robots();
Список изменений
С версии 3.1.0 | Введена. |
Код WP_Query::is_robots() WP Query::is robots WP 5.6.2
public function is_robots() {
return (bool) $this->is_robots;
}