apply_filters( ‘root_rewrite_rules’, string[] $root_rewrite )

In this article

Filters rewrite rules used for root-level archives.

Description

Likely root-level archives would include pagination rules for the homepage as well as site-wide post feeds (e.g. /feed/, and /feed/atom/).

Parameters

$root_rewritestring[]
Array of root-level rewrite rules, keyed by their regex pattern.

Source

$root_rewrite = apply_filters( 'root_rewrite_rules', $root_rewrite );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.