WordPress at a glance
filter is not described

tag_rewrite_rules filter-hook . WP 2.3.0

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

Usage

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

	return $rules;
}
$rules(string[])
Array of rewrite rules generated for tags, keyed by their regex pattern.
$string
-
$string
-

Changelog

Since DEL 3.1.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

Usage not found!