为WordPress注册导入程序。
register_importer(string $id,string $name,string $description,callable $callback)
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$id | (string) | 必需 | 进口商标签。用于唯一标识导入程序。 |
$name | (string) | 必需 | 进口商名称和头衔。 |
$description | (string) | 必需 | 进口商说明。 |
$callback | (callable) | 必需 | 要运行的回调。 |
返回(Return)
(WP_Error)当$callback是WP_Error时返回WP_Error。
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-admin/includes/import.php:54 | 0 | 1 function |