root_rewrite_rules

root_rewrite_rules

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('root_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1348
    		 * @since 1.5.0
    		 *
    		 * @param string[] $root_rewrite Array of root-level rewrite rules, keyed by their regex pattern.
    		 */
    		$root_rewrite = apply_filters( 'root_rewrite_rules', $root_rewrite );
    
    		// Comments rewrite rules.
    		$comments_rewrite = $this->generate_rewrite_rules( $this->root . $this->comments_base, EP_COMMENTS, false, true, true, false );
    
    		/**
    		 * Filters rewrite rules used for comment feed archives.