函数原型
noindex()
函数描述
Displays a noindex meta tag if required by the blog configuration.
是否弃用
Warning: This function has been deprecated. Use wp_no_robots() instead.
函数参数
无
函数返回值
无
函数位置
File: wp-includes/deprecated.php.
函数源码
add_action( 'wp_head', 'noindex' );源码链接
变更日志
| Version | Description |
|---|---|
| 5.7.0 | Use wp_robots_noindex() instead on 'wp_robots' filter. |
| 2.1.0 | Introduced. |

