Title: wp-includes/robots-template.php | Developer.WordPress.org

---

# File: wp-includes/robots-template.php

 * function[wp_robots_no_robots()](https://developer.wordpress.org/reference/functions/wp_robots_no_robots/)
 * Adds `noindex` to the robots meta tag.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_robots_no_robots/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_robots_no_robots/#uses)
   | Source: [wp-includes/robots-template.php:140](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L140-L150)
 * function[wp_robots_sensitive_page()](https://developer.wordpress.org/reference/functions/wp_robots_sensitive_page/)
 * Adds `noindex` and `noarchive` to the robots meta tag.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_sensitive_page/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_sensitive_page/#uses)
   | Source: [wp-includes/robots-template.php:167](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L167-L171)
 * function[wp_robots_max_image_preview_large()](https://developer.wordpress.org/reference/functions/wp_robots_max_image_preview_large/)
 * Adds `max-image-preview:large` to the robots meta tag.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_max_image_preview_large/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_robots_max_image_preview_large/#uses)
   | Source: [wp-includes/robots-template.php:188](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L188-L193)
 * function[wp_robots()](https://developer.wordpress.org/reference/functions/wp_robots/)
 * Displays the robots meta tag as necessary.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_robots/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_robots/#uses)
   | Source: [wp-includes/robots-template.php:20](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L20-L50)
 * hook[wp_robots](https://developer.wordpress.org/reference/hooks/wp_robots/)
 * Filters the directives to be included in the ‘robots’ meta tag.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_robots/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_robots/#uses)
   | Source: [wp-includes/robots-template.php:32](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L32-L32)
 * function[wp_robots_noindex()](https://developer.wordpress.org/reference/functions/wp_robots_noindex/)
 * Adds `noindex` to the robots meta tag if required by the site configuration.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex/#uses)
   | Source: [wp-includes/robots-template.php:70](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L70-L76)
 * function[wp_robots_noindex_embeds()](https://developer.wordpress.org/reference/functions/wp_robots_noindex_embeds/)
 * Adds `noindex` to the robots meta tag for embeds.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex_embeds/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex_embeds/#uses)
   | Source: [wp-includes/robots-template.php:92](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L92-L98)
 * function[wp_robots_noindex_search()](https://developer.wordpress.org/reference/functions/wp_robots_noindex_search/)
 * Adds `noindex` to the robots meta tag if a search is being performed.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex_search/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_robots_noindex_search/#uses)
   | Source: [wp-includes/robots-template.php:118](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/robots-template.php#L118-L124)