On this page
apply_filters( 'wp_robots', array $robots )
Filters the directives to be included in the ‘robots’ meta tag.
Description
The meta tag will only be included as necessary.
Parameters
$robotsarray-
Associative array of directives. Every key must be the name of the directive, and the corresponding value must either be a string to provide as value for the directive or a boolean
trueif it is a boolean directive, i.e. without a value.
Source
File: wp-includes/robots-template.php. View all references
$robots = apply_filters( 'wp_robots', array() );
Related
Used By
| Used By | Description |
|---|---|
| wp_robots() wp-includes/robots-template.php | Displays the robots meta tag as necessary. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_robots