author_rewrite_rules WordPress Filter Hook

This hook is used to specify custom author permalink structures. It takes two arguments: $author_rewrite_rules $author_base

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.


Top ↑

Parameters

$author_rewrite

(string[])Array of rewrite rules for author archives, keyed by their regex pattern.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.