W3cubDocs

/WordPress

apply_filters( 'post_rewrite_rules', string[] $post_rewrite )

Filters rewrite rules used for “post” archives.

Parameters

$post_rewrite

(string[]) Array of rewrite rules for posts, keyed by their regex pattern.

Source

File: wp-includes/class-wp-rewrite.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

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