| 开发者 | gdetassigny |
|---|---|
| 更新时间 | 2026年10月19日 18:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp-image-… classes, [gallery] shortcodes, media URLs (including every image size) and links to the source domain.wp cherrylift export and wp cherrylift import, including dry runs.build/ is compiled from src-js/ in that repository with @wordpress/scripts: run npm install and npm run build to rebuild it. Contributions are welcome; see CONTRIBUTING.md in the repository.
upload_max_filesize and post_max_size). For very large packages, use WP-CLI on the target site:
wp cherrylift import package.zip --user=adminNo. Only the items in the package are created or updated. Nothing else on the target site is changed.
The items you select, plus what they need to display correctly: parent pages, categories, tags and their parents, featured images, media used in the content, and synced patterns. The export preview lists every item before you download. Child pages are not included unless you select them.
Items are updated in place. Each item carries a stable ID (stored as hidden metadata) that is used to recognize it on the target, so nothing is duplicated.
It is treated as the same page and updated, then linked for future syncs. This avoids "contact-2" duplicates on sites that were set up separately. Developers can turn this off with the cherrylift_match_existing_entity filter.
Yes. In the import preview, untick the items you don't want to create or update.
Custom fields (post meta and term meta) are copied. Fields that store IDs of other content (beyond featured images) are only remapped if a developer declares them with the cherrylift_id_reference_meta_keys filter. Advanced Custom Fields relationship, post object, image and gallery fields are not remapped automatically yet.
The target site only accepts file types allowed for uploads there. For example, SVG files are rejected by a default WordPress install. The import report lists anything that was skipped or failed.
Links that point to the source site's domain are rewritten to the target site's domain. Links whose page has a different slug on the target are not adjusted.
Administrators (the manage_options capability) by default. Developers can change this with the cherrylift_capability filter; WordPress's normal per-item permissions then still apply.
Only import packages you trust: a package is content from another site. Packages are validated before anything is extracted (sizes, file list, file types, checksums), and only content types can be written, never site configuration. Users without the unfiltered_html capability get their imported content filtered as usual.
Uploaded packages wait in wp-content/uploads/cherrylift/ until they are imported, and WP-CLI exports are written there too. Their names are random and the folder blocks web access with an .htaccess file, which nginx ignores. Add a location ^~ /wp-content/uploads/cherrylift/ { deny all; } rule to block it there too.
Multisite networks haven't been tested yet. Syncing directly between sites of the same network isn't supported: export from one site and import on the other.
wp cherrylift export writes packages to wp-content/uploads/cherrylift/exports/ and prints their path (--porcelain prints only the path). The --file option is removed.wp-content/uploads/cherrylift/packages/.cherrylift_*), the REST API (cherrylift/v1) and the WP-CLI command (wp cherrylift) use the new name..zip files and never overwrite existing ones.