[WordPress] 外掛分享: Menu Ghost

前言介紹

  • 這款 WordPress 外掛「Menu Ghost」是 2025-10-26 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-11-25,距離現在已有 92 天。
  • 外掛最低要求 WordPress 6.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sarailoo |

外掛標籤

navigation | user roles | menu visibility | personalization | conditional menus |

內容簡介

總結:Menu Ghost 是一款外掛程式,可以設計無阻礙的導航體驗,透過只顯示給每位訪問者相關的選單項目,以提高轉換率。它整合了內建的 WordPress 選單編輯器,並添加了一個現代化的條件界面,快速、直觀,且鍵盤友好。

1. 這個外掛程式能如何幫助提高網站的轉換率?
- 透過只顯示給每位訪問者相關的選單項目,提供無阻礙的導航體驗,從而提高轉換率。

2. Menu Ghost 可以實現哪些精細的選單定位?
- 使用者角色、登入狀態、瀏覽器語言、或設備類型等可以作為包含或排除規則。
- 可以針對特定日期、日期範圍、或時間窗口安排選單顯示。
- 在單一、存檔、作者、或自定義分類法畫面上顯示項目。
- 可以偵測 UTM 廣告參數或個別查詢字串值。

3. Menu Ghost 外掛程式的介面是如何設計的?
- 介面使用了 React,並使用 WordPress 元件,因此感覺像是原生的。
- 所有數據儲存於標準的文章元訊中,並遵守 WordPress 編碼標準。

4. 在開發過程中應該遵循哪些步驟?
- 在公共存儲庫 https://github.com/sarailoo/menu-ghost 中可以找到 Menu Ghost 的原始碼。
- 使用 composer install 和 npm install 進行安裝。
- 開發過程中使用 npm run build。
- 使用 npm run plugin-zip 導出可分發的 zip 檔案(包含編譯的資產)。
- 使用 composer language 重新生成語言檔案 languages/menu-ghost.pot。

請查閱存儲庫的 README 以獲取其他建置細節,或提出問題/提出拉請求。

原文外掛簡介

Menu Ghost lets you conditionally display each menu item based on factors like user role, device, date, pages, and more.
Design frictionless navigation experiences and boost conversions by only showing relevant menu items to each visitor. Menu Ghost integrates with the native WordPress menu editor and adds a modern conditions interface that feels like it belongs in core. Everything happens inside Appearance → Menus (classic themes) or Site Editor → Navigation (block themes) no shortcodes or template edits required.
What does Menu Ghost do?
Menu Ghost gives you total control over which navigation links appear and when. Build unlimited rule sets per menu item, combining audience, page, schedule, and campaign conditions. Hide seasonal promotions after a sale ends, display member-only dashboards, or show localized links based on browser language.
Key features

Audience targeting – Show or hide menu items based on user role, login status, browser language, or detected device (desktop, tablet, mobile).
Page & post rules – Limit links to specific pages, post types, taxonomies, archives, author archives, search results, or 404 pages.
Scheduling controls – Activate items on selected weekdays, within date ranges, or during daily time windows.
Campaign awareness – React to query-string values, UTM parameters, or custom marketing links for landing pages.
No-code workflow – React-powered UI inside the existing menu screen. Toggle rules with familiar WordPress components.
Unlimited conditions – Stack include/exclude rules to create precise logic for every menu item.
Performance friendly – All logic runs server-side with cached WordPress APIs. No front-end scripts added to your theme.

Popular use cases

Display a “Members Area” link only to logged-in customers on desktop.
Promote a holiday sale on every page until a specific date/time is reached.
Replace “Book a call” with “Download brochure” on mobile visitors to boost conversions.
Show “Return to checkout” when users view product archives, but hide it elsewhere.
Localize navigation labels and URLs based on browser language or UTM campaigns.

Why choose Menu Ghost?

Native experience – Built with the WordPress components library for a seamless admin UI.
Clean code & extensibility – PHP logic follows core standards and stores data in post meta.
Marketing ready – Understand traffic sources and tailor menus without page builders.
SEO aware – Hide links for humans while keeping friendly markup for search engines (links still exist, only visibility changes).

The interface is built with React and uses WordPress components so it remains responsive, accessible, and familiar. All rule data is stored in post meta to keep compatibility with exports, migrations, and backups.
Rule reference
Pages tab

Include / Exclude – Decide whether a matching condition should show or hide the menu item.
Entire Site – Create a catch-all rule that always fires. Place it below granular rules when you need fallback behavior.
Archive scopes – Target date archives, author archives, taxonomy listings, WooCommerce product archives, search results, or even the 404 template.
Singular scopes – Limit links to specific posts, pages, custom post types, parent/child relationships, or taxonomy terms.
Add Condition – Stack unlimited rules. Menu Ghost evaluates them from top to bottom, so keep broad rules toward the bottom of the list.

Advanced tab

User Role – Match any WordPress role, including custom roles added by eCommerce or membership plugins.
User Device – Detect desktop, tablet, or mobile visitors to tailor calls to action per device.
Login Status – Serve different menu links to logged-in versus logged-out visitors.
Signup Date – Target members who registered before or after a specific date—ideal for onboarding flows.
Browser Language – Show localized links when the visitor’s browser shares a preferred language.
Days of the Week – Toggle links on specific weekdays (e.g., “Weekend brunch menu”).
Within Date Range – Schedule seasonal links to appear between two calendar dates without manual edits.
Within Time Window – Display links only during a daily time slice, such as support hours or flash sales.
URL Query Parameter – Require a query-string key/value (like ref=partner) before the menu item appears.
UTM Campaign / Content / Medium / Source / Term – React to marketing URLs so visitors see campaign-specific navigation when arriving from ads or emails.

Development
The source code for Menu Ghost lives in the public repository at https://github.com/sarailoo/menu-ghost.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Menu Ghost」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 2.0.0 | 2.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Different Menu in Different Pages – Conditional Menu 》設置不同用戶的不同選單,自定義網址、頁面、文章、頁面模板、文章類型、類別、分類等。, 如何設置不同的選單?, , 功能, , 在不同頁面使用不同選單設置有易...。
  • IF Menu Visibility 》總結:, IF Menu 外掛為 WordPress 菜單新增了一個強大而簡單的功能:條件性可見性。使用此外掛可以控制特定菜單項目對所有訪問者、僅對已登入使用者或僅對未...。
  • LMSCrafter User Menu & Redirects 》總結:LMSCrafter User Menu & Redirects 外掛能夠改變 WordPress 導航,提供動態用戶選單和智能登入/登出重定向,非常適合會員網站、線上課程、WooComme...。

文章
Filter
Mastodon