跳到内容

Switcher

v1.3.0

Kostya Tereshchuk · 2017年11月24日 上架

One toolbar button that switches between the admin page and the public page you viewed last.

正在使用
30+
评分
5.0 / 5
累计下载
2,138
最近更新
2026年10月15日
1 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.3+

截图

Switcher
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).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums