apply_filters( ‘date_rewrite_rules’, string[] $date_rewrite )

In this article

Filters rewrite rules used for date archives.

Description

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

Parameters

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

Source

$date_rewrite = apply_filters( 'date_rewrite_rules', $date_rewrite );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

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