WordPress at a glance
filter is not described

post_rewrite_rules filter-hook . WP 1.5.0

Filters rewrite rules used for "post" archives.

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

add_filter( 'post_rewrite_rules', 'filter_function_name_1777' );
function filter_function_name_1777( $post_rewrite ){
	// filter...

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

Changelog

Since 1.5.0 Introduced.

Where the hook is called

WP_Rewrite::rewrite_rules()
post_rewrite_rules
wp-includes/class-wp-rewrite.php 1296
$post_rewrite = apply_filters( 'post_rewrite_rules', $post_rewrite );

Where in WP core the hook is used WordPress

Usage not found.