Filter hook 'root_rewrite_rules'
in WP Core File wp-includes/class-wp-rewrite.php at line 1345
Description
Filters rewrite rules used for root-level archives. Likely root-level archives would include pagination rules for the homepage as well as site-wide post feeds (e.g. `/feed/`, and `/feed/atom/`).
Occurrences
Filename |
Line Number |
wp-includes/class-wp-rewrite.php |
1345 |
Parameters
Type |
Name |
Description |
string[] |
$root_rewrite |
Array of root-level rewrite rules, keyed by their regex pattern. |
PHP Doc
/**
* Filters rewrite rules used for root-level archives.
*
* Likely root-level archives would include pagination rules for the homepage
* as well as site-wide post feeds (e.g. `/feed/`, and `/feed/atom/`).
*
* @since 1.5.0
*
* @param string[] $root_rewrite Array of root-level rewrite rules, keyed by their regex pattern.
*/