noindex

SummerySummery

Displays a noindex meta tag if required by the blog configuration.

Syntax

noindex()

DescriptionDescription

If a blog is marked as not being public then the noindex meta tag will be output to tell web robots not to index the page content. Add this to the ‘wp_head’ action.

Typical usage is as a ‘wp_head’ callback:

add_action( 'wp_head', 'noindex' );

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.

See alsoSee also

Scroll to Top