A WordPress-centric search engine for devs and theme authors



{$permastructname}_rewrite_rules ›

Since3.1.0
Deprecatedn/a
apply_filters( "{$permastructname}_rewrite_rules", $rules )
Parameters:
  • (array) $rules The rewrite rules generated for the current permastruct.
    Required: Yes
Defined at:
Codex:

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.





Source

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