WordPress开发者和主题制作者的搜索引擎



wp_no_robots ›

Since3.3.0
已弃用n/a
wp_no_robots ( 没有参数 )
定义在:
文档:

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



源码

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