A WordPress-centric search engine for devs and theme authors



wp_no_robots ›

Since3.3.0
Deprecatedn/a
wp_no_robots ( No parameters )
Defined at:
Codex:

Display a noindex meta tag.

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

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