apply_filters_deprecated( ‘tag_rewrite_rules’, string[] $rules )

In this article

This hook has been deprecated. Use {@see ‘post_tag_rewrite_rules’} instead.

Filters rewrite rules used specifically for Tags.

Parameters

$rulesstring[]
Array of rewrite rules generated for tags, keyed by their regex pattern.

Source

$rules = apply_filters_deprecated( 'tag_rewrite_rules', array( $rules ), '3.1.0', 'post_tag_rewrite_rules' );

Changelog

VersionDescription
3.1.0Use 'post_tag_rewrite_rules' instead.
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.