date_rewrite_rules

Advertisement

Summery Summery

Filters rewrite rules used for date archives.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$date_rewrite

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

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?