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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Use 'post_tag_rewrite_rules' instead.
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.