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



root_rewrite_rules ›

Seit1.5.0
Veraltetn/v
apply_filters( 'root_rewrite_rules', $root_rewrite )
Parameter:
  • (string[]) $root_rewrite Array of root-level rewrite rules, keyed by their regex pattern.
    Erforderlich: Ja
Definiert in:
Codex:

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/).





Quellcode

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