Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



noindex ›

Seit2.1.0
Veraltetn/v
noindex ( Keine Parameter )
Siehe:
Definiert in:
Codex:

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

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 {@see 'wp_head'} action.

Typical usage is as a {@see 'wp_head'} callback:

add_action( 'wp_head', 'noindex' );


Quellcode

function noindex() {
	// If the blog is not public, tell robots to go away.
	if ( '0' == get_option('blog_public') )
		wp_no_robots();
}