开发者 | TheWebist |
---|---|
更新时间 | 2025年7月29日 22:37 |
PHP版本: | 8.1 及以上 |
WordPress版本: | 6.8 |
版权: | GPL2+ |
版权网址: | 版权信息 |
wp-content/plugins/localdev-{plugin-slug}
2. You should now have two directories containing the same plugin inside your /plugins/
:
1. /plugins/your-plugin/
- Loaded from VCS/WordPress.org Plugins/etc.
2. /plugins/localdev-your-plugin/
- Your local development version
3. 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.
/wp-content/plugins/
directory.Currently, LocalDev Switcher is designed for plugins only.
localdev-{plugin-slug}
version?LocalDev Switcher will default to using the version-controlled plugin.
10up/action-wordpress-plugin-deploy
./assets/
via /.wordpress-org/
.10up/action-wordpress-plugin-deploy
to v1.4.0
to support our current, simple deploy workflow./plugins/
.localdev-{plugin-slug}
pattern.