apply_filters( ‘author_rewrite_rules’, string[] $author_rewrite )

In this article

Filters rewrite rules used for author archives.

Description

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

Parameters

$author_rewritestring[]
Array of rewrite rules for author archives, keyed by their regex pattern.

Source

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.