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/.


Top ↑

Parameters

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

Top ↑

Source

File: wp-includes/class-wp-rewrite.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes

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