istogram/wp-api-content-migration
最新稳定版本:v1.4
Composer 安装命令:
composer require istogram/wp-api-content-migration
包简介
An Acorn package to migrate content from a WP API to a local WP installation
README 文档
README
This Acorn package provides Artisan commands to migrate a WP site's content using the WP REST API.
Installation
You can install this package with Composer:
composer require istogram/wp-api-content-migration
You can publish the config file with:
wp acorn vendor:publish --provider="istogram\WpApiContentMigration\Providers\ContentMigrationServiceProvider"
Configuration
Allow SVG media uploads
If you want to allow SVG media uploads you will need to set the config option:
'allow_svg_media' => true
Usage
To migrate WP content from a WP site, using the WP REST API, to the local site use this command replacing {domain} with the domain of the Live WP site :
wp acorn migrate:content {domain}
When no options are applied, the command will proceed step by step, asking for confirmation before each step is applied.
If you want to clear the current taxonomies, media, posts and pages of the local site you may use this option :
wp acorn migrate:content {domain} --clear-all
You may also use this option if you want to migrate all WP content without confirmations :
wp acorn migrate:content {domain} --clear-all --migrate-all
Please be aware that if you choose to clear any of the existing taxonomies, media, posts or pages this will delete entirely all the relevant content from the local site DB. This action is irreversible, so it's safer to have a DB backup first.
统计信息
- 总下载量: 557
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-15