On this page
apply_filters( 'author_rewrite_rules', string[] $author_rewrite )
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
File: wp-includes/class-wp-rewrite.php. View all references
$author_rewrite = apply_filters( 'author_rewrite_rules', $author_rewrite );
Related
Used By
| Used By | Description |
|---|---|
| WP_Rewrite::rewrite_rules() wp-includes/class-wp-rewrite.php | Constructs rewrite matches and queries from permalink structure. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/author_rewrite_rules