[WordPress] 外掛分享: Auto Subpage Menu

首頁外掛目錄 › Auto Subpage Menu
WordPress 外掛 Auto Subpage Menu 的封面圖片
900+
安裝啟用
★★★★
4.3/5 分(12 則評價)
2053 天前
最後更新
問題解決
WordPress 3.3.0+ v1.1.5 上架:2015-08-26

內容簡介

預設情況下,WordPress 菜單系統只能自動將頂層頁面添加/刪除到菜單中

當發布頂層頁面時,將其添加到菜單中
當將頂層頁面移到回收桶中時,將其從菜單中刪除
當恢復頂層頁面時,將其添加到菜單中

此功能對子頁面(子頁面)沒有影響,但是 Auto Subpage Menu 可以實現以下功能:

當發布子頁面(子頁面)時,將其添加到菜單中(如果其父頁面存在於菜單中)
更新子頁面(子頁面)時更新菜單
將子頁面(子頁面)移到回收桶中時,從菜單中刪除它們
還原子頁面(子頁面)時,將其添加到菜單中

注意事項

WordPress 編程標準
phpDocumentor DocBlock 標準
Auto Subpage Menu – WordPress 目錄 URI
2 個空格進行縮進
Github 存儲庫

待辦事項

[ ] 將 DocBlock 實現到所有位置
[ ] 父頁面移動時自動更新子頁面,由 ncwebdev 建議,主題
[ ] 在 WordPress 下載頁面中添加其他版本

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Auto Subpage Menu」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

By default wordpress menu system, wordpress can only automatically add/remove top-level page to/from menus

When publish top-level page then add it into menus
When move top-level page to trash then remove it from menus
When restore top-level page then add it into menus

this feature has no effect with subpage (child page), but Auto Subpage Menu can

When publish subpage (child page) then add it into menus (if its page parent exists in menu)
When update subpage (child page) then update menus
When move subpage (child page) to trash then remove it from menus
When restore subpage (child page) then add it into menus

Notes

WordPress Coding Standards
phpDocumentor DocBlock Standard
Auto Subpage Menu – WordPress Directory Uri
2 spaces for indent
Repository on Github

TODO

[ ] Implement DocBlock to all
[ ] Automatically update child-page when its parent have been move, suggested by ncwebdev, topic
[ ] Add other versions into wordpress download page

延伸相關外掛

文章
Filter
Apply Filters
Mastodon