| 开发者 | TheWebist |
|---|---|
| 更新时间 | 2025年12月23日 04:11 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 6.9 |
| 版权: | 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.
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.
/wp-content/plugins/ directory.Yes, setup your theme for local development using the pattern localdev-{theme-slug}.
localdev-{plugin-slug} version?LocalDev Switcher will default to using the version-controlled plugin.
update-assets.yml action for future Tested up to edits without a full deploy.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.