Filters rewrite rules used for individual permastructs.
Description
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
Parameters
$rulesstring[]- Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.
Source
$rules = apply_filters( "{$permastructname}_rewrite_rules", $rules ); Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.