Title: LocalDev Switcher
Author: thewebist
Published: <strong>2025 年 7 月 29 日</strong>
Last modified: 2025 年 12 月 22 日

---

搜索插件

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

![](https://ps.w.org/localdev-switcher/assets/icon.svg?rev=3336022)

# LocalDev Switcher

 作者：[thewebist](https://profiles.wordpress.org/thewebist/)

[下载](https://downloads.wordpress.org/plugin/localdev-switcher.0.8.0.zip)

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

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

## 描述

LocalDev Switcher allows you to seamlessly toggle between production plugins and
themes and their local development versions.

**Usage:**

 1. Place your local dev version of a plugin in:
 2. wp-content/plugins/localdev-{plugin-slug}
 3. You should now have two directories containing the same plugin inside your `/plugins/`:
 4.  a. `/plugins/your-plugin/` – Loaded from VCS/WordPress.org Plugins/etc.
     b. `/plugins/localdev-your-plugin/` – Your local development version
 5. Use LocalDev Switcher to toggle between the version-controlled and local versions.
    The toggle UI appears in the plugin meta row.

LocalDev Switcher prevents double-loading and ensures only the desired version is
active.

For theme support, follow the same pattern as for plugin support. Setup your local
version of your theme inside the theme directory using `localdev-{theme-slug}` for
the local version’s directory name.

## 屏幕截图

[⌊Adds UI to show which plugins you can switch between VCS and Local.⌉⌊Adds UI to
show which plugins you can switch between VCS and Local.⌉[

Adds UI to show which plugins you can switch between VCS and Local.

[⌊Toggle between VCS and Local versions of your plugins in the Plugins list.⌉⌊Toggle
between VCS and Local versions of your plugins in the Plugins list.⌉[

Toggle between VCS and Local versions of your plugins in the Plugins list.

[⌊Switch between Local and VCS versions of your currently active theme.⌉⌊Switch 
between Local and VCS versions of your currently active theme.⌉[

Switch between Local and VCS versions of your currently active theme.

## 安装

 1. Upload the plugin folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Follow the usage instructions to begin switching between plugin versions.

## 常见问题

### Does this work with themes?

Yes, setup your theme for local development using the pattern `localdev-{theme-slug}`.

### What happens if I don’t have a `localdev-{plugin-slug}` version?

LocalDev Switcher will default to using the version-controlled plugin.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ thewebist ](https://profiles.wordpress.org/thewebist/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.8.0

 * Adding WordPress theme support. Now you can switch between Local and VCS versions
   of your currently active theme.

#### 0.7.0

 * Adding `update-assets.yml` action for future `Tested up to` edits without a full
   deploy.

#### 0.6.9

 * Adding proper perms for uploading ZIP to GitHub release.

#### 0.6.8

 * Updating deploy action to follow latest conventions for `10up/action-wordpress-
   plugin-deploy`.
 * Adding WordPress.org Plugin `/assets/` via `/.wordpress-org/`.

#### 0.6.7

 * Updating deploy action `10up/action-wordpress-plugin-deploy` to `v1.4.0` to support
   our current, simple deploy workflow.

#### 0.6.6

 * Fixing deploy action version

#### 0.6.5

 * Releasing on [WordPress.org Plugins](https://wordpress.org/plugins/localdev-switcher/).

#### 0.6.4

 * Updating method for finding plugins within `/plugins/`.
 * Updating “Usage” documentation for clarity.

#### 0.6.3

 * First public release. Toggle between VCS and local plugin versions via `localdev-{
   plugin-slug}` pattern.

## 额外信息

 *  版本 **0.8.0**
 *  最后更新：**8 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **6.9.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/localdev-switcher/)
 * 标签
 * [development](https://cn.wordpress.org/plugins/tags/development/)[local development](https://cn.wordpress.org/plugins/tags/local-development/)
   [plugin management](https://cn.wordpress.org/plugins/tags/plugin-management/)
   [plugins](https://cn.wordpress.org/plugins/tags/plugins/)[themes](https://cn.wordpress.org/plugins/tags/themes/)
 *  [高级视图](https://cn.wordpress.org/plugins/localdev-switcher/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ thewebist ](https://profiles.wordpress.org/thewebist/)

## 支持

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

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