Filters the robots.txt output.
Parameters
$outputstring- The robots.txt output.
$publicbool- Whether the site is considered "public".
Source
echo apply_filters( 'robots_txt', $output, $public );
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
Filters the robots.txt output.
$outputstring$publicboolecho apply_filters( 'robots_txt', $output, $public );
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
An example of how robots.txt file content can be altered.