root_rewrite_rules

root_rewrite_rules

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('root_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1348
    1344
    1345
    1346
    1347
    1348
    1349
    1350
    1351
    1352
    1353
    1354
    * @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.