W3cubDocs

/WordPress

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

$page_rewrite = apply_filters( 'page_rewrite_rules', $page_rewrite );

Changelog

Version Description
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/page_rewrite_rules