On this page
apply_filters( 'page_rewrite_rules', string[] $page_rewrite )
Filters rewrite rules used for “page” post type archives.
Parameters
$page_rewritestring[]-
Array of rewrite rules for the "page" post type, keyed by their regex pattern.
Source
File: wp-includes/class-wp-rewrite.php. View all references
$page_rewrite = apply_filters( 'page_rewrite_rules', $page_rewrite );
Related
Used By
| Used By | Description |
|---|---|
| WP_Rewrite::rewrite_rules() wp-includes/class-wp-rewrite.php | Constructs rewrite matches and queries from permalink structure. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/page_rewrite_rules