
內容簡介
WordPress Importer 可以從 WordPress 匯出檔案中導入以下內容:
文章、頁面和其他自定義文章類型
評論和評論元數據
自定義欄位和文章元數據
來自自定義分類和分類元的類別、標籤和術語
作者
更多資訊和說明請參見匯入內容的文件。
篩選器
匯入工具有幾個篩選器可讓您完全啟用/封鎖某些功能:
import_allow_create_users:如果您只允許與現有用戶進行映射,請返回 false
import_allow_fetch_attachments:如果您不希望允許導入和下載附件,請返回 false
import_attachment_size_limit:返回以字節為單位的最大文件大小整數值以保存(默認值為 0,即無限制)
還有一些可連接的操作:
import_start:匯入檔案上傳後和作者匯入設置選擇後發生
import_end:匯入器最後輸出後呼叫
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The WordPress Importer will import the following content from a WordPress export file:
Posts, pages and other custom post types
Comments and comment meta
Custom fields and post meta
Categories, tags and terms from custom taxonomies and term meta
Authors
For further information and instructions please see the documention on Importing Content.
Filters
The importer has a couple of filters to allow you to completely enable/block certain features:
import_allow_create_users: return false if you only want to allow mapping to existing users
import_allow_fetch_attachments: return false if you do not wish to allow importing and downloading of attachments
import_attachment_size_limit: return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited)
There are also a few actions available to hook into:
import_start: occurs after the export file has been uploaded and author import settings have been chosen
import_end: called after the last output from the importer
