Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



{$permastructname}_rewrite_rules ›

Seit3.1.0
Veraltetn/v
apply_filters( "{$permastructname}_rewrite_rules", $rules )
Parameter:
  • (string[]) $rules Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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