root_rewrite_rules

Advertisement

Summery Summery

Filters rewrite rules used for root-level archives.

Syntax Syntax

apply_filters( 'root_rewrite_rules', string[] $root_rewrite )

Description 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 Parameters

$root_rewrite

(string[]) Array of root-level rewrite rules, keyed by their regex pattern.

Source Source

File: wp-includes/class-wp-rewrite.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?