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



root_rewrite_rules ›

Since1.5.0
已弃用n/a
apply_filters( 'root_rewrite_rules', $root_rewrite )
参数:
  • (array) $root_rewrite The root-level rewrite rules.
    Required: Yes
定义在:
文档:

Filters rewrite rules used for root-level archives.

Likely root-level archives would include pagination rules for the homepage as well as site-wide post feeds (e.g. /feed/, and /feed/atom/).





源码

$root_rewrite = apply_filters( 'root_rewrite_rules', $root_rewrite );