
內容簡介
在發佈這個外掛後不久,我注意到當您前往 WP-Admin > 設定 > 永久連結時,WordPress
會自動刷新重寫規則。聰明的做法,對吧?所以不用安裝它,
但如果您正在尋找以下示例的程式碼,請放心檢查:
使用 WordPress 設定 API 將選項添加到現有的設定頁面;
與外掛選項配合使用 WordPress AJAX API;
過度設計已解決的問題的解決方案。
請享用!🙂
外掛標籤
開發者團隊
原文外掛簡介
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! 🙂
