post_rewrite_rules

post_rewrite_rules

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('post_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1319
    		 * @since 1.5.0
    		 *
    		 * @param string[] $post_rewrite Array of rewrite rules for posts, keyed by their regex pattern.
    		 */
    		$post_rewrite = apply_filters( 'post_rewrite_rules', $post_rewrite );
    
    		// Date rewrite rules.
    		$date_rewrite = $this->generate_rewrite_rules( $this->get_date_permastruct(), EP_DATE );
    
    		/**
    		 * Filters rewrite rules used for date archives.