On this page
apply_filters( 'robots_txt', string $output, bool $public )
Filters the robots.txt output.
Parameters
$outputstring-
The robots.txt output.
$publicbool-
Whether the site is considered "public".
Source
File: wp-includes/functions.php. View all references
echo apply_filters( 'robots_txt', $output, $public );
Related
Used By
| Used By | Description |
|---|---|
| do_robots() wp-includes/functions.php | Displays the default robots.txt file content. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/robots_txt