WordPress at a glance
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/.

Usage

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

	return $date_rewrite;
}
$date_rewrite(string[])
Array of rewrite rules for date archives, keyed by their regex pattern.

Список изменений

С версии 1.5.0 Введена.

Где вызывается хук

WP_Rewrite::rewrite_rules()
date_rewrite_rules
wp-includes/class-wp-rewrite.php 1310
$date_rewrite = apply_filters( 'date_rewrite_rules', $date_rewrite );

Где используется хук в ядре WordPress

Использование не найдено.