Summery Summery

Constructs rewrite matches and queries from permalink structure.

Syntax Syntax


Description Description

Runs the action ‘generate_rewrite_rules’ with the parameter that is an reference to the current WP_Rewrite instance to further manipulate the permalink structures and rewrite rules. Runs the ‘rewrite_rules_array’ filter on the full rewrite rule array.

There are two ways to manipulate the rewrite rules, one by hooking into the ‘generate_rewrite_rules’ action and gaining full control of the object or just manipulating the rewrite rule array before it is passed from the function.

Return Return

(string[]) An associative array of matches and queries.

Source Source

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



Changelog Changelog

Version Description
1.5.0 Introduced.


Leave a Reply

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