On this page
WP_Query::is_robots(): bool
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. View all references
public function is_robots() {
return (bool) $this->is_robots;
}
Related
Used By
| Used By | Description |
|---|---|
| is_robots() wp-includes/query.php | Is the query for the robots.txt file? |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/is_robots