Summery Summery

Filters rewrite rules used for individual permastructs.

Syntax Syntax

apply_filters( "{$permastructname}_rewrite_rules", string[] $rules )

Description Description

The dynamic portion of the hook name, $permastructname, refers to the name of the registered permastruct, e.g. ‘post_tag’ (tags), ‘category’ (categories), etc.

Parameters Parameters


(string[]) Array of rewrite rules generated for the current permastruct, keyed by their regex pattern.

Source Source

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


Changelog Changelog

Version Description
3.1.0 Introduced.


Leave a Reply

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

What are you looking for?