| 开发者 | wolktools |
|---|---|
| 更新时间 | 2026年7月15日 18:37 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
GET_LOCK for a robust lock so multiple operators — or an AI script and a manual operation — do not import at the same time and collide.wolktools-dry-run-importer directory into wp-content/plugins/ as-is (or install the ZIP from "Plugins > Add New > Upload Plugin" in the admin).Open Tools > Dry Run Importer in the WordPress admin. The export screen is next to it, at Tools > Dry Run Exporter. It sits under "Tools" rather than in its own top-level menu because that is where the standard WordPress importer lives, so import tools are where most people look for them first. If you would rather not hunt through the menu, the "Open" link on the plugin's row in the Plugins page takes you straight to the import screen, and a notice with the same link appears once right after activation.
The plugin is designed around a safety model: it always takes an automatic backup before import, automatically blocks dangerous content, and lets you restore at any time. That said, the first time you use it on production, we recommend first trying a "Dry Run" on a test/staging environment, reviewing the warning messages, and securing a full external DB/file backup before use.
No. Restore only returns the post's text, metadata, and taxonomy relationships to the backup point. To protect server disk space, image files already saved to the Media Library are not deleted.
When you uninstall, the temporary task information, per-post backup logs, and processing-log tables that the plugin created are safely and completely removed from the database, and the wpsi_* settings options are erased as well. Your normal posts and Media Library images are never deleted.
We most recommend matching by "Slug." Matching by "Title" risks accidentally overwriting a different article that happens to share the same title. Use matching by "ID" only when you are certain the post IDs intentionally coincide between source and destination (for example, syncing staging to production).
If WordPress isn't installed yet, or you want to check WXR structure or reconcile against a CSV without affecting a running WordPress site, use the "Web Checker" — a single self-contained HTML page that runs fully offline in your browser. It is distributed separately from this plugin (it is not included in the plugin ZIP); you can find the download link on the plugin page. When you want to actually bring data into WordPress safely and use the per-post backup and restore features, use the "WP Plugin."
Yes. However, image download makes external HTTP requests and creates new attachments in the destination Media Library, so run it deliberately after confirming the liveness and safety of the image URLs (including an SSRF-prevention filter) in the Dry Run.
Yes. This is the most reliable migration procedure.
chown on the server).wpsi_attachment_relink_policy (strict / filename-only / default) changes the matching strictness.
ACF field definitions are usually managed outside the content (ACF admin UI, JSON sync, or code), so they are not part of a WXR file. Warnings of the kind "definition is not in the WXR" (e.g. parent field group not found, referenced field definition missing) are expected in that setup — register the definitions on the destination site first (see the FAQ above) and the report returns to normal. However, a warning that a field's value itself is missing is a real sign the field will end up empty; review those before importing.
No. Importing never deletes destination content — it only creates and updates the posts contained in the file. If you need to remove posts that were deleted on the source, delete them manually on the destination.
Dry Run Exporter is based on WordPress core's export_wp() and generates a safely server-side-filtered WXR XML file on the fly. Before exporting, always click "Preview" to confirm the number of posts and attachments to be exported, the estimated file size, and PII warnings such as author email addresses.
The Attachment mode (how related media is exported) offers three behaviors: "auto" (auto-collect only media related to the selected posts), "include" (include all site media), and "exclude" (exclude media).
Note: WXR XML files contain author email addresses and display names. Handle export files with appropriate care for personal data.
wpsi_enable_csv_match), removed the redundant old/new URL fields from Advanced Settings, and removed the on-screen version badge. Unified importer/exporter heading sizes.wpsi_attachment_relink_policy.<wp:post_mime_type> for attachments so imported media renders without guessing the mime type..distignore + release.yml zip assertion excludes PoC, tests, history, and dev configs./export-preview, /export, and /export-filters.wpsi_after_raw_meta_update action hook fires after raw post meta writes for integrators (ACF, search index, persistent object cache).