W3cubDocs

/WordPress

apply_filters_deprecated( 'tag_rewrite_rules', string[] $rules )

This hook has been deprecated. Use ‘post_tag_rewrite_rules’ instead.

Filters rewrite rules used specifically for Tags.

Parameters

$rules

(string[]) Array of rewrite rules generated for tags, keyed by their regex pattern.

Source

File: wp-includes/class-wp-rewrite.php

View on Trac

Changelog

Version Description
3.1.0 Use 'post_tag_rewrite_rules' instead.
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/tag_rewrite_rules