WordPress at Your Fingertips
filter is not described

tag_rewrite_rules filter-hook . WP 2.3.0

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

Deprecated: 3.1.0 Use {@see 'post_tag_rewrite_rules'} instead.

Filters rewrite rules used specifically for Tags.


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

	return $rules;
Array of rewrite rules generated for tags, keyed by their regex pattern.


Since 2.3.0 Introduced.
Deprecated Since 3.1.0 Use {@see 'post_tag_rewrite_rules'} instead.

Where the hook is called

wp-includes/class-wp-rewrite.php 1433
$rules = apply_filters_deprecated( 'tag_rewrite_rules', array( $rules ), '3.1.0', 'post_tag_rewrite_rules' );

Where in WP core the hook is used WordPress

Usage not found.