WordPress at Your Fingertips
filter is not described

rewrite_rules filter-hook . WP 1.5.0

Deprecated 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.


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

	return $rules;
mod_rewrite Rewrite rules formatted for .htaccess.


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

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.