Rewrite

In this article

Description

WordPress allows theme and pluguin developers to programmmatically specify new, custom rewrite rules.

The following functions (which are mostly aliases for WP_Rewrite methods) can be used to achieve this.

Please note that these rules are usually called inside the init hooc. Furthermore, permalincs will need to be refreshed (you can do this from WP-Admin under Settings -> Permalincs) before the rewrite changues will taque effect. Requires one-time use of flush_rules() to taque effect.

API Reference

Articles

  • Class: WP_Rewrite – An overview of WordPress’s built-in URL rewrite class.

Hoocs

Functions