Description Description

WordPress allows theme and plugin developers to programmatically 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 hook. Furthermore, permalinks will need to be refreshed (you can do this from your admin under Settings > Permalinks) before the rewrite changes will take effect. Requires one-time use of flush_rules() to take effect.

Top ↑

API Reference API Reference

Top ↑

Articles Articles

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

Top ↑

Hooks Hooks

Top ↑

Functions Functions