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

$post_rewrite = apply_filters( 'post_rewrite_rules', $post_rewrite );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.