WP_Rewrite
Core class used to implement a rewrite component API.
Core class used to implement a rewrite component API.
Constructor – Calls init(), which runs setup.
Adds an endpoint, like /trackback/.
Adds a rewrite rule that doesn’t correspond to index.php.
Adds a new permalink structure.
Adds or updates existing rewrite tags (e.g. %postname%).
Adds a rewrite rule that transforms a URL structure to a set of query vars.
Removes rewrite rules and then recreate rewrite rules.
Generates rewrite rules with permalink structure and walking directory only.
Generates rewrite rules from a permalink structure.