wp_no_robots()

Display a noindex meta tag.


Description Description

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’ );


Source Source

File: wp-includes/general-template.php

function wp_no_robots() {
	echo "<meta name='robots' content='noindex,follow' />\n";
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.