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



{$permastructname}_rewrite_rules ›

Since3.1.0
已弃用n/a
apply_filters( "{$permastructname}_rewrite_rules", $rules )
参数:
  • (array) $rules The rewrite rules generated for the current permastruct.
    Required: Yes
定义在:
文档:

Filters rewrite rules used for individual permastructs.

The dynamic portion of the hook name, $permastructname, refers to the name of the registered permastruct, e.g. 'post_tag' (tags), 'category' (categories), etc.





源码

$rules = apply_filters( "{$permastructname}_rewrite_rules", $rules );