aism_migration_run
Migrate a WordPress site in resumable batches by calling with a cursor until done, including terms, media, content, comments, settings, and final URL remapping; rerun to sync updates.
Instructions
Migrate a whole site in resumable steps: terms, media (original files), all content types including menus, templates, global styles and patterns, comments, site settings (front page, permalinks, widgets, customizer), then a finalize pass that remaps IDs and rewrites source URLs to the target. Returns within max_seconds; call again with the returned cursor until done is true. Re-running updates already migrated objects instead of duplicating them, so it also works as an incremental sync (with modified_after). Overwrites target settings and previously migrated objects. Users are not created; authors are matched by login/email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | cursor from the previous call; omit to start. | |
| phases | No | Subset of phases (finalize always runs). Default: all. | |
| source | Yes | Configured site name to migrate FROM (needs migration:read). | |
| status | No | preserve keeps source publication status; draft imports publicly viewable content as drafts (patterns, menus and templates stay usable). | preserve |
| target | Yes | Configured site name to migrate INTO (needs migration:read and migration:write). | |
| author_map | No | Source author login → target user login. Unmapped authors match by login, then email, then default_author. | |
| post_types | No | Only these post types (include attachment for media). Default: all. | |
| match_slugs | No | Adopt existing target posts with the same type and slug instead of creating duplicates. Terms and templates always match by slug. | |
| max_seconds | No | Time budget for this call. | |
| on_existing | No | For objects already migrated earlier: update them from the source, or leave them. | update |
| default_author | No | Target login used when no author matches. Defaults to the target key owner. | |
| modified_after | No | ISO date: only posts, media and comments changed after it (incremental sync). |