wp_no_robots

SummerySummery

Display a noindex meta tag.

Syntax

wp_no_robots()

DescriptionDescription

Outputs a noindex meta tag that tells web robots not to index the page content. Typical usage is as a ‘wp_head’ callback. add_action( ‘wp_head’, ‘wp_no_robots’ );

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Echo "noindex,nofollow" if search engine visibility is discouraged.
3.3.0 Introduced.
Scroll to Top