Core Function
View Source on Trac ↗ wp_robots_noindex()
wp_robots_noindex( array $robots ) Adds `noindex` to the robots meta tag if required by the site configuration.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $robots array | Associative array of robots directives. Required |
Return Value
(array)
Filtered robots directives.
Function Information
Since Version
5.7.0
Source File
wp-includes/robots-template.php
Advertisement