
內容簡介
Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。在ChurchThemes.com上查看有關詳細信息。
導入
通過上傳由外掛創建的導出文件來執行導入。導入結果會顯示在漂亮格式的表格中,並說明每個小工具區域和小工具的情況。
導入考慮了當前主題中不存在的小工具區域(導入的小工具為非活動狀態),已經存在於同一小工具區域中的小工具(不重複的小工具)和不受站點支持的小工具(不導入的小工具)。
導出
Widget Importer & Exporter 可以創建一個導出文件(使用 .wie 擴展名的 JSON 格式),以便從當前活動的小工具中將文件導入到其他站點,或者稍後用於恢復小工具到同一站點。
開發人員
在上傳文件但在導入數據之前,觸發 wie_before_import 操作。數據導入後觸發 wie_after_import。可以使用 wie_import_data 過濾器在導入數據之前過濾數據。其他過濾器也在使用中。如果需要其他鉤子,請在 GitHub 上提交拉取請求。
請前往 GitHub 上報告問題並關注開發情況。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Widget Importer & Exporter is useful for moving widgets from one WordPress site to another, backing up widgets and for theme developers to give users sample widgets. See the details on ChurchThemes.com.
Importing
Importing is done by uploading an export file created by the plugin. The results of an import are shown in a nicely formatted table with an explanation of what happened with each widget area and widget.
Importation takes into consideration widget areas not existing in the current theme (widgets imported as Inactive), widgets that already exist in the same widget area (widgets not duplicated) and widgets that are not supported by the site (widgets not imported).
Exporting
Widget Importer & Exporter can create an export file (in JSON format with .wie extension) out of currently active widgets. This file can be imported into other sites using this plugin or used to restore widgets to the same site later.
Developers
The wie_before_import action fires after a file is uploaded but before the data is imported. wie_after_import fires after the data is imported. The wie_import_data filter can be used to filter data before it is imported. Other filters are used throughout. Make a pull request on GitHub if you need another hook.
Please jump on GitHub to report issues and follow development.
