
內容簡介
以下是您所提供WordPress插件的總結:
LocalDev Switcher允許您無縫地在生產環境插件和本地開發版本之間切換。
請看以下問題與答案:
- 如何在託管本地開發版本的插件?
將您的插件的本地開發版本放置在以下位置:wp-content/plugins/localdev-{插件別名}。
- 在/plugins/目錄下應該會有哪兩個包含相同插件的目錄?
/plugins/your-plugin/ - 來自VCS/WordPress.org Plugins等。
/plugins/localdev-your-plugin/ - 您的本地開發版本。
- 使用LocalDev Switcher如何在版本控制和本地版本之間切換?
使用LocalDev Switcher在版本控制和本地版本之間切換。切換介面將出現在插件元資料欄。
- LocalDev Switcher如何防止重複加載並確保僅啟用所需版本?
LocalDev Switcher可以防止重複加載,並確保只有所需的版本處於啟用狀態。
外掛標籤
開發者團隊
原文外掛簡介
LocalDev Switcher allows you to seamlessly toggle between production plugins and themes and their local development versions.
Usage:
Place your local dev version of a plugin in:
wp-content/plugins/localdev-{plugin-slug}
You should now have two directories containing the same plugin inside your /plugins/:
/plugins/your-plugin/ – Loaded from VCS/WordPress.org Plugins/etc.
/plugins/localdev-your-plugin/ – Your local development version
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.
