This directive tells web robots not to index the page content. Typical usage is as a 'wp_robots' callback: add_filter( 'wp_robots', 'wp_robots_no_robots' );
Parameters
$robotsarray
Associative array of robots directives.
Return
array
Filtered robots directives.
Uses · 1
get_option()Retrieves an option value based on an option name.
Used by · 3
wp_robots_noindex()Adds `noindex` to the robots meta tag if required by the site configuration.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/robots-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.