內容簡介
使用定制器中的即時預覽功能,您可以立即看到外掛對您的網站所做的更改。此實驗性外掛帶有在定制器內啟用和停用外掛的功能。取決於此實驗的成功,未來可能會加入外掛安裝和更新功能。
不幸的是,定制器預覽目前無法反映已啟用的外掛清單中的更改。此外,外掛未進行沙盒處理 - 從此處啟用的出錯外掛有可能會破壞您的網站。請謹慎使用此外掛。然而,除非您“保存並發布”,否則更改不會發佈到您的實際網站,外掛管理器功能可以啟用和停用外掛。預覽功能需要在外掛加載之前(出於明顯的原因)將其鉤入 WordPress 中,而無法在外掛中實現。
有關更多討論,請參閱 https://core.trac.wordpress.org/ticket/40451。
外掛標籤
開發者團隊
原文外掛簡介
Live preview in the customizer allows you to see what plugins do to your site instantly. This experimental plugin brings the ability to activate and deactivate plugins from within the customizer. Plugin installation and updates could be a potential future phase depending on the success of this experiment.
Unfortunately, the customizer preview cannot currently reflect changes to the active plugins list. Additionally, plugins are not sandboxed – broken plugins activated from here could break your site. Use this plugin with caution. However, changes are not published to your live site until you “Save and Publish,” and the plugin manager does functionally activate and deactivate plugins. Preview functionality requires hooking into WordPress before plugins are loaded (for obvious reasons), which isn’t possible to do within a plugin.
See https://core.trac.wordpress.org/ticket/40451 for additional discussion.
