WordPress at a glance
filter is not described

rewrite_rules filter-hook . WP 1.5.0

Deprecated in 1.5.0. It is no longer supported and can be removed in future releases. Use the mod_rewrite_rules filter instead.

Deprecated: 1.5.0 Use the 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_1626' );
function filter_function_name_1626( $rules ){
	// filter...

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


Since DEL 1.5.0 Introduced.

Where the hook is called

wp-includes/class-wp-rewrite.php 1563
return apply_filters( 'rewrite_rules', $rules );

Where the hook is used (in WP core)

Usage not found!