內容簡介
您可以在「外觀」>「自訂」下自由地修改您的佈景主題設定,而不用擔心遺失這些設定!當您滿意設定後,只需點擊「建立備份」按鈕,您即可在未來隨時回覆至這些精確的設定。您甚至可以下載備份以確保在安全的地方儲存多個副本。
或者,如果您想要在本地開發自訂選項,然後自動設定這些選項以符合您的實際網站,只需下載自訂器備份並上傳至實際網站即可。您甚至可以將您的自訂器設定傳送給您的朋友或客戶。
針對佈景主題/外掛開發人員:這也是一種「佈景主題內佈景主題」的方式,讓單一佈景主題擁有許多不同的預設樣式。例如,您可以使用外掛的啟用勾子來使用備份(以 JSON 格式)並讓外掛樣式重新定義主題。如果您的外掛確實改變自訂器樣式,您也可以觸發使用者當前設定的自動備份,以便不會永久刪除任何使用者的設定。
外掛標籤
開發者團隊
原文外掛簡介
Feel free to play with your Theme Mods under “Appearance” > “Customizer” without worrying about losing your settings! When you are happy with your settings, just click the “Create Backup” button and you’ll always be able to revert to those exact settings in the future. You can even download the backups to make sure you save multiple copies in a safe place.
Or, if you want to develop your customizer locally and then automatically set up those options to match on your live site, simply download a Customizer Backup and Upload it to your live site. You could even send your Customizer settings to your friends or customers.
For Theme/Plugin Developers: This is also a way to create a “Theme within a Theme” – by allowing a single theme to have many different pre-set styles. For example, you could use an activation hook in a plugin to use a backup (in JSON format) and make plugins re-style a Theme. If your plugin does change the Customizer styles, you could also trigger an auto backup of the user’s current settings so that you don’t permanently erase any of the user’s settings.
