WordPress at Your Fingertips
filter is not described

date_rewrite_rules filter-hook . WP 1.5.0

Filters rewrite rules used for date archives.

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


add_filter( 'date_rewrite_rules', 'filter_function_name_2188' );
function filter_function_name_2188( $date_rewrite ){
	// filter...

	return $date_rewrite;
Array of rewrite rules for date archives, keyed by their regex pattern.

Where the hook is called

wp-includes/class-wp-rewrite.php 1324
$date_rewrite = apply_filters( 'date_rewrite_rules', $date_rewrite );

Where in WP core the hook is used WordPress

Usage not found.