post_rewrite_rules filter-hook . WP 1.5.0
Filters rewrite rules used for "post" archives.
Usage
add_filter( 'post_rewrite_rules', 'filter_function_name_426' ); function filter_function_name_426( $post_rewrite ){ // filter... return $post_rewrite; }
- $post_rewrite(string[])
- Array of rewrite rules for posts, keyed by their regex pattern.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
post_rewrite_rules
wp-includes/class-wp-rewrite.php 1296
$post_rewrite = apply_filters( 'post_rewrite_rules', $post_rewrite );