apply_filters( 'robots_txt', string $output, bool $public )

Filters the robots.txt output.

Parameters

$output

(string) The robots.txt output.

$public

(bool) Whether the site is considered "public".

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
3.0.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/robots_txt