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



wp_robots › WordPress过滤钩子

Since5.7.0
已弃用n/a
apply_filters( 'wp_robots', array()
参数:
  • (array) $robots Associative array of directives. Every key must be the name of the directive, and the corresponding value must either be a string to provide as value for the directive or a boolean `true` if it is a boolean directive, i.e. without a value.
    Required: Yes
定义在:
文档:

Filters the directives to be included in the 'robots' meta tag.

The meta tag will only be included as necessary.





源码

$robots = apply_filters( 'wp_robots', array() );