It was brought to my attention shortly after releasing this plugin that WordPress automatically flushes rewrite rules when you visit WP-Admin > Settings > Permalinks. Ingenious, right? So don’t bother installing it, but feel free to check out the code if you are looking for an example of how to:
- Use the WordPress Settings API to add an option to an existing Settings page;
- Use the WordPress AJAX API in conjunction with your plugin options;
- Over-engineer a solution to a problem that has already been solved.
Enjoy! 🙂
Este plugin está disponível para download para ser usado em sua instalação auto-hospedada do WordPress.