Title: Switcher
Author: Kostya Tereshchuk
Published: <strong>2017-11-24</strong>
Last modified: 2026-10-15

---

Szukaj wtyczek

![](https://ps.w.org/switcher/assets/banner-772x250.png?rev=3747611)

![](https://ps.w.org/switcher/assets/icon-256x256.png?rev=3747611)

# Switcher

 Autor: [Kostya Tereshchuk](https://profiles.wordpress.org/kostyatereshchuk/)

[Pobierz](https://downloads.wordpress.org/plugin/switcher.1.3.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/switcher/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/switcher/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/switcher/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/switcher/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/switcher/)

## Opis

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

## Zrzuty ekranu

[[

[[

## Instalacja

 1. Install Switcher from „Plugins > Add New” (search for „switcher toolbar”) or upload
    the `switcher` folder to `/wp-content/plugins/`.
 2. Activate it. The button appears at the right end of the toolbar.

## Najczęściej zadawane pytania

### I hide the toolbar on the front end. Does the button still work?

The button lives in the toolbar, so it is visible only where the toolbar is. Your
public page views are still remembered, so the button on the admin side keeps working.

### Does it store anything in the database?

No. The two cookies live in your browser only.

### Can I change or disable the keyboard shortcut?

Yes, with the `switcher_shortcut` filter: return an array with `ctrl`, `alt`, `shift`,`
meta` flags and a `code` such as `KeyS`, or an empty array to disable it.

## Recenzje

![](https://secure.gravatar.com/avatar/2a75770482d6ebce1b809048e964bd7eb6aa2427a84172684ede4980f8d6658e?
s=60&d=retro&r=g)

### 󠀁[Simple and useful](https://wordpress.org/support/topic/simple-and-useful-189/)󠁿

 [zukorich](https://profiles.wordpress.org/zukorich/) 2017-12-15

Installed this plugin on my few sites and got a pleasure!

 [ Przeczytaj 1 recenzje ](https://wordpress.org/support/plugin/switcher/reviews/)

## Kontrybutorzy i deweloperzy

„Switcher” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój
wtyczki.

Zaangażowani

 *   [ Kostya Tereshchuk ](https://profiles.wordpress.org/kostyatereshchuk/)

[Przetłumacz wtyczkę “Switcher” na swój język.](https://translate.wordpress.org/projects/wp-plugins/switcher)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/switcher/), sprawdź 
[repozytorium SVN](https://plugins.svn.wordpress.org/switcher/) lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/switcher/)
przez [RSS](https://plugins.trac.wordpress.org/log/switcher/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 1.3.0

 * Rewritten: the server remembers the page you view and computes the button’s target
   when the toolbar is rendered; the only script left is a few lines for the shortcut,
   inline on the toolbar’s own script.
 * The target is validated as an address on this site; a cookie can no longer point
   the button elsewhere.
 * Cookies are set with the Secure, HttpOnly and SameSite=Lax attributes and use
   the site’s own cookie path, so sites in sub-directories no longer share one cookie.
   The 2017 cookies are ignored and expire by themselves.
 * Only real page views are remembered: no AJAX or REST calls, feeds, embeds, 404
   pages, previews or form submissions.
 * Fixed: a script error on public pages for users who hide the toolbar.
 * The button has an accessible name and a tooltip that shows where it leads; strings
   are translatable.
 * New: keyboard shortcut Ctrl+Alt+S (filter `switcher_shortcut`).
 * Requires WordPress 5.0 and PHP 7.3; tested up to 7.1.

#### 1.2

 * Switch between the recently viewed admin page and the recently viewed public 
   page.

## Meta

 *  Wersja **1.3.0**
 *  Ostatnia aktualizacja **1 miesiąc temu**
 *  Włączone instalacje **30+**
 *  Wersja WordPressa ** 5.0 lub nowszej **
 *  Testowano do **7.1.4**
 *  Wersja PHP ** 7.3 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/switcher/)
 * Tagi
 * [admin](https://pl.wordpress.org/plugins/tags/admin/)[admin bar](https://pl.wordpress.org/plugins/tags/admin-bar/)
   [navigation](https://pl.wordpress.org/plugins/tags/navigation/)[switch](https://pl.wordpress.org/plugins/tags/switch/)
   [toolbar](https://pl.wordpress.org/plugins/tags/toolbar/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/switcher/advanced/)

## Oceny

 5 na 5 gwiazdek.

 *  [  1 recenzja 5-gwiazdkowa     ](https://wordpress.org/support/plugin/switcher/reviews/?filter=5)
 *  [  0 recenzji 4-gwiazdkowych     ](https://wordpress.org/support/plugin/switcher/reviews/?filter=4)
 *  [  0 recenzji 3-gwiazdkowych     ](https://wordpress.org/support/plugin/switcher/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/switcher/reviews/?filter=2)
 *  [  0 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/switcher/reviews/?filter=1)

[Twoja opinia](https://wordpress.org/support/plugin/switcher/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/switcher/reviews/)

## Zaangażowani

 *   [ Kostya Tereshchuk ](https://profiles.wordpress.org/kostyatereshchuk/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/switcher/)