WP_Query::is_robots()
Is the query for the robots.txt file?
Return
(bool) Whether the query is for the robots.txt file.
Source
File: wp-includes/class-wp-query.php
public function is_robots() { return (bool) $this->is_robots; }
Expand full source code Collapse full source code View on Trac View on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |