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



robots_txt ›

Since3.0.0
已弃用n/a
apply_filters( 'robots_txt', $output, $public )
参数: (2)
  • (string) $output Robots.txt output.
    Required: Yes
  • (bool) $public Whether the site is considered "public".
    Required: Yes
定义在:
文档:

Filters the robots.txt output.





源码

echo apply_filters( 'robots_txt', $output, $public );