Uma área de pesquisa sobre o WordPress para devs e autores do tema



{$permastructname}_rewrite_rules ›

Desde3.1.0
Obsoleton/a
apply_filters( "{$permastructname}_rewrite_rules", $rules )
Parâmetros:
  • (array) $rules The rewrite rules generated for the current permastruct.
    Required: Yes
Definido em:
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.





Fonte

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