Title: Zodan Theme Switcher
Author: Marten Moolenaar
Published: <strong>2025 年 6 月 21 日</strong>
Last modified: 2026 年 9 月 26 日

---

搜索插件

![](https://ps.w.org/z-theme-switcher/assets/banner-772x250.jpg?rev=3433687)

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

# Zodan Theme Switcher

 作者：[Marten Moolenaar](https://profiles.wordpress.org/martenmoolenaar/)

[下载](https://downloads.wordpress.org/plugin/z-theme-switcher.1.3.2.zip)

 * [详情](https://cn.wordpress.org/plugins/z-theme-switcher/#description)
 * [评价](https://cn.wordpress.org/plugins/z-theme-switcher/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/z-theme-switcher/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/z-theme-switcher/#developers)

 [支持](https://wordpress.org/support/plugin/z-theme-switcher/)

## 描述

When we are developing themes, we quite often like to switch between the old (active)
and the new (to develop) version of a theme. Sometimes without other people noticing.

This plugin does exactly that.

#### What does it do?

It lets users with certain roles see another (than the currently active) theme, 
by
 * Selecting a theme from the list of installed themes * Selecting which user
roles are permitted to switch themes and * Optionally, selecting user roles that
can use a ‘switch theme/back’ button on the front-end

This plugin is under active development. Any feature requests are welcome at [plugins@zodan.nl](https://cn.wordpress.org/plugins/z-theme-switcher/plugins@zodan.nl?output_format=md)!

## 安装

#### Install the Theme Switcher from within WordPress

 1. Visit the plugins page within your dashboard and select ‘Add New’;
 2. Search for ‘Zodan Theme Switcher’;
 3. Activate the plugin from your Plugins page;
 4. Go to ‘after activation’ below.

#### Install manually

 1. Unzip the Theme Switcher zip file
 2. Upload the unzipped folder to the /wp-content/plugins/ directory;
 3. Activate the plugin through the ‘Plugins’ menu in WordPress;
 4. Go to ‘after activation’ below.

#### After activation

 1. On the Plugins page in WordPress you will see a ‘settings’ link below the plugin
    name;
 2. On the Theme Switcher settings page:
     ** Select the theme you want to be able to
    switch to ** Select the roles with the permission to switch
 3. Save your settings and you’re done!

## 常见问题

### Does it work in a multisite environment?

Yep. It does.

### The Switch theme button on the front-end is not showing, can you help?

Hm. It could be that you are using a theme that does not call wp_footer() (which
is the hook it is linked to).
 In that case, you can use the custom hook/action 
for this. Just add the following php code (make sure it is somehow called on every
page):

### Do you have plans to improve the plugin?

We currently have on our roadmap:
 * Adding translations * Adding a custom capability(
to be used next to roles, for those who want to add a custom role) * Set the preference
per user

If you have a feature suggestion, send us an email at [plugins@zodan.nl](https://cn.wordpress.org/plugins/z-theme-switcher/plugins@zodan.nl?output_format=md).

## 评价

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

### 󠀁[A simple but very useful tool for theme developers](https://wordpress.org/support/topic/a-simple-but-very-useful-tool-for-theme-developers/)󠁿

 [Daan Verbaan](https://profiles.wordpress.org/daanverbaan/) 2025 年 6 月 30 日

Z Theme Switcher has quickly become one of my favourite tools when working on new
WordPress themes. It solves a very specific problem in a clean and effective way:
being able to preview a different theme — just for yourself or selected user roles—
without changing the live site for visitors. What I really like: It’s lightweight
and easy to set up You can control exactly who sees the development theme The optional
front-end switch button is handy during testing It keeps everything safe and invisible
to regular users I often need to develop or fine-tune a new design while a site 
stays online. With this plugin, I can work directly on the live server, test things
in context, or share previews with clients — all without setting up a separate staging
environment. It’s clear the developer understands real-world needs. The plugin is
actively maintained and feels reliable. If you work with custom themes, this is 
definitely worth adding to your toolkit.

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

### 󠀁[Makes developing a lot easier!!!](https://wordpress.org/support/topic/makes-developing-a-lot-easier/)󠁿

 [Henry Peters](https://profiles.wordpress.org/henry-peters/) 2025 年 6 月 30 日

Very handy plugin to quickly switch between themes. Makes developing a lot easier.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/)

## 贡献者及开发者

「Zodan Theme Switcher」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Marten Moolenaar ](https://profiles.wordpress.org/martenmoolenaar/)
 *   [ Zodan ](https://profiles.wordpress.org/zodannl/)

「Zodan Theme Switcher」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/z-theme-switcher/contributors)
为本插件所做的贡献。

[帮助将「Zodan Theme Switcher」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/z-theme-switcher)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/z-theme-switcher/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/z-theme-switcher/)，或通过[RSS](https://plugins.trac.wordpress.org/log/z-theme-switcher/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/z-theme-switcher/)。

## 更新日志

#### 1.3.2

 * Name changes

#### 1.3.1

 * Removed load_text_domain()
 * Fixed text domain mismatch

#### 1.3

 * Added setting to also switch in the backend

#### 1.2

 * Added JS to copy PHP code

#### 1.1

 * Changed front-end JS and CSS loading method

#### 1.0

 * Very first version of this plugin

## 额外信息

 *  版本 **1.3.2**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/z-theme-switcher/) 和 [English (US)](https://wordpress.org/plugins/z-theme-switcher/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/z-theme-switcher)
 * 标签
 * [development](https://cn.wordpress.org/plugins/tags/development/)[switch theme](https://cn.wordpress.org/plugins/tags/switch-theme/)
   [theme development](https://cn.wordpress.org/plugins/tags/theme-development/)
 *  [高级视图](https://cn.wordpress.org/plugins/z-theme-switcher/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/z-theme-switcher/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/z-theme-switcher/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/z-theme-switcher/reviews/)

## 贡献者

 *   [ Marten Moolenaar ](https://profiles.wordpress.org/martenmoolenaar/)
 *   [ Zodan ](https://profiles.wordpress.org/zodannl/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/z-theme-switcher/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.buymeacoffee.com/zodan)