On this page
apply_filters( 'post_rewrite_rules', string[] $post_rewrite )
Filters rewrite rules used for “post” archives.
Parameters
$post_rewritestring[]-
Array of rewrite rules for posts, keyed by their regex pattern.
More Information
This post will only affect content of the post type ‘posts’.
Source
File: wp-includes/class-wp-rewrite.php. View all references
$post_rewrite = apply_filters( 'post_rewrite_rules', $post_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/post_rewrite_rules