WordPress at a glance
filter is not described

rewrite_rules filter-hook . WP 1.5.0

Deprecated in from version 1.5.0. It is no longer supported and can be removed in future releases. See mod_rewrite_rules.

Deprecated: 1.5.0 Use the {@see 'mod_rewrite_rules'} filter instead.

Filters the list of rewrite rules formatted for output to an .htaccess file.

Usage

add_filter( 'rewrite_rules', 'filter_function_name_2495', 10, 3 );
function filter_function_name_2495( $rules, $string, $string ){
	// filter...

	return $rules;
}
$rules(string)
mod_rewrite Rewrite rules formatted for .htaccess.
$string
-
$string
-

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

С версии 1.5.0 Введена.
Устарела с 1.5.0 Use the {@see 'mod_rewrite_rules'} filter instead.

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

WP_Rewrite::mod_rewrite_rules()
rewrite_rules
wp-includes/class-wp-rewrite.php 1568
return apply_filters_deprecated( 'rewrite_rules', array( $rules ), '1.5.0', 'mod_rewrite_rules' );

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

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