WordPress at a glance
filter is not described

root_rewrite_rules filter-hook . WP 1.5.0

Filters rewrite rules used for root-level archives.

Likely root-level archives would include pagination rules for the homepage as well as site-wide post feeds (e.g. /feed/, and /feed/atom/).

Usage

add_filter( 'root_rewrite_rules', 'filter_function_name_5477' );
function filter_function_name_5477( $root_rewrite ){
	// filter...

	return $root_rewrite;
}
$root_rewrite(string[])
Array of root-level rewrite rules, keyed by their regex pattern.

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

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

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

WP_Rewrite::rewrite_rules()
root_rewrite_rules
wp-includes/class-wp-rewrite.php 1325
$root_rewrite = apply_filters( 'root_rewrite_rules', $root_rewrite );

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

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