wpseek.com
A WordPress-centric search engine for devs and theme authors



author_rewrite_rules › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'author_rewrite_rules', $author_rewrite )
Parameters:
  • (string[]) $author_rewrite Array of rewrite rules for author archives, keyed by their regex pattern.
    Required: Yes
Defined at:
Codex:

Filters rewrite rules used for author archives.

Likely author archives would include /author/author-name/, as well as pagination and feed paths for author archives.





Source

$author_rewrite = apply_filters( 'author_rewrite_rules', $author_rewrite );