Used By
Used By | Description |
---|---|
wp-includes/class-wp-rewrite.php: WP_Rewrite::rewrite_rules() | Constructs rewrite matches and queries from permalink structure. |
Filters rewrite rules used for individual permastructs.
The dynamic portion of the hook name, $permastructname
, refers to the name of the registered permastruct, e.g. ‘post_tag’ (tags), ‘category’ (categories), etc.
(string[]) Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/permastructname_rewrite_rules