Warning: This hook has been deprecated. Use ‘post_tag_rewrite_rules’ instead.
tag_rewrite_rules WordPress Hook
The tag_rewrite_rules hook is used to alter the generated rewrite rules for tags. This can be useful for custom post types that have tags with unusual characters.
apply_filters_deprecated( 'tag_rewrite_rules', string[] $rules ) #
Filters rewrite rules used specifically for Tags.
Parameters
- $rules
(string[])Array of rewrite rules generated for tags, keyed by their regex pattern.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Use 'post_tag_rewrite_rules' instead. |
2.3.0 | Introduced. |