apply_filters( 'date_rewrite_rules', string[] $date_rewrite )

Filters rewrite rules used for date archives.

Description

Likely date archives would include /yyyy/, /yyyy/mm/, and /yyyy/mm/dd/.

Parameters

$date_rewrite

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

Source

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

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/date_rewrite_rules