page_rewrite_rules WordPress Filter Hook
The page_rewrite_rules hook is used to filter the collection of regular expression rewrite rules used by WordPress to match incoming URLs.
apply_filters( 'page_rewrite_rules', string[] $page_rewrite ) #
Filters rewrite rules used for “page” post type archives.
Parameters
- $page_rewrite
(string[])Array of rewrite rules for the "page" post type, keyed by their regex pattern.
Source
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |