[WordPress] 外掛分享: Switcher

首頁 › 外掛目錄 › Switcher
WordPress 外掛 Switcher 的封面圖片
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
38 天前
最後更新
—
問題解決
WordPress 5.0+ PHP 7.3+ v1.3.0 上架:2017-11-23

內容簡介

Switcher 是一款簡單的 WordPress 外掛,能在控制台工具列中新增一個按鈕,方便用戶在管理頁面與公開頁面之間快速切換,提升使用效率。

【主要功能】
• 快速切換管理頁面與公開頁面
• 記錄最近瀏覽的頁面,持續 30 天
• 支援鍵盤快捷鍵 Ctrl+Alt+S
• 無需設定或額外檔案
• 僅記錄真實頁面瀏覽,不計算 AJAX 或 REST 調用

外掛標籤

開發者團隊

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

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

原文外掛簡介

Switcher adds one icon button to the WordPress toolbar. On an admin page it opens the public page you viewed last; on a public page it opens the admin page you viewed last. Before you have viewed anything it opens the home page or the dashboard.

No settings, no extra files to load, nothing stored on the server.
Two cookies in your browser remember the last page on each side for 30 days (switcher_public_url, switcher_admin_url); they are set with the Secure (on HTTPS), HttpOnly and SameSite=Lax attributes.
Only real page views count: not AJAX or REST calls, feeds, embeds, 404 pages, previews or form submissions.
The button only ever opens an address on this site.
Keyboard shortcut: Ctrl+Alt+S (also on a Mac) switches sides without touching the mouse; it is ignored while you type in a field. The tooltip shows where the button leads.
Works for every logged-in user who sees the toolbar; visitors get nothing.

Developers: switcher_cookie_lifetime filters the 30 days, switcher_cookie_options the arguments passed to setcookie(), switcher_shortcut the key combination (return an empty array to disable it).

延伸相關外掛

文章
Filter
Mastodon