Filters rewrite rules used for individual permastructs.
The dynamic portion of the hook name, $permastructname, refers to the name of the registered permastruct.
Possible hook names include:
category_rewrite_rulespost_format_rewrite_rulespost_tag_rewrite_rules$rulesstring[]
This filter hook allows you to modify various custom permastructs, such as those generated for custom post types or taxonomies (both built-in or custom).
$rules = apply_filters( "{$permastructname}_rewrite_rules", $rules );
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/permastructname_rewrite_rules