migro.dev / docs
Migro Documentation
Everything you need to set up and use Migro for your WordPress staging workflow: installation, connection setup, Pro features, and troubleshooting.
Introduction Start here
Migro is a WordPress plugin that changes how you move content between environments. Instead of copying entire sites and risking data loss on the live site, Migro lets you pick specific posts, pages, and media, with everything attached to them, and copy just those. Everything else on the other site stays untouched.
Hybrid architecture
Migro uses a hybrid approach: it reads target environment data through a secure database connection while authenticating operations natively via the WordPress REST API and Application Passwords.
Installation
01
Download the Plugin
Download the free version directly from the WordPress plugin repository, or use your Migro Pro ZIP file from your license email.
02
Install on both sites
Migro needs to be active on both environments: your staging site and your production site. Install and activate it on each one.
03
Activate
Go to WordPress Admin → Plugins → Add New → Upload Plugin. Install and activate. The Migro menu will appear in the admin sidebar.
Server requirements
Install Migro on both sites. Each one needs:
- WordPress: 5.6 or higher (required for Application Passwords)
- PHP: 7.4 or higher
- PHP extensions: sodium, mbstring, zlib and cURL. Most hosts enable them by default.
- Sodium: required. It protects saved credentials and verifies your license. Some hosts leave it off: if Migro cannot activate your license, ask your host to enable the PHP sodium extension.
- Application Passwords and the REST API: turned on. Some security plugins and hosts turn them off.
- Network: the two sites must be able to reach each other, with no firewall blocking requests between them.
- Database access: optional. With the remote database credentials Migro connects directly (needs PDO MySQL); without them it connects over HTTP.
The Health tab on the Migro screen names the problems it can detect, such as a missing sodium extension or a site it cannot reach.
Setup Wizard Automatic Onboarding
Migro opens a Setup Wizard the first time you activate it. Run it on both sites. It sets the site's role and pairs it with the other site, usually with a single code.
01
Welcome
A short overview of what the wizard will do.
02
Activate your license (Pro)
Enter your Pro license key. The free version skips this step. If activation fails, check that your server has the PHP sodium extension (see Server requirements).
03
Choose this site's role
Pick Staging or Production. If MIGRO_ENVIRONMENT is set in wp-config.php, the role comes from there.
04
Pair with one code
On one site, click Generate pairing code. On the other, paste it and click Pair this site. Migro sets up both sides from that one paste. A code works once and expires after 15 minutes, so treat it like a password.
Prefer to type the details? Open Enter details manually: the other site's URL, an administrator username and an Application Password. Database credentials are optional; without them Migro connects over HTTP. If your staging site runs on your computer (LocalWP, XAMPP), tick My staging environment is hosted locally.
05
Done
Migro checks the other site and tells you where things stand: connected, waiting for setup on the other site, or waiting for the license there. You can also choose to share anonymous usage data. Then you go straight to your content.

Choosing Enter details manually shows the full form instead:

Need to run it again?
Open admin.php?page=migro-content-migrator-setup on the site. To pair with a different site later, generate a new code: pasting it replaces the old connection.
Generating Application Passwords
To securely transport content, Migro requires an Application Password on the target site (e.g., production).
- Log in to your remote target site directly.
- Go to Users → Profile (or edit your admin user).
- Scroll down to the Application Passwords section.
- In the "New Application Password Name" field, type something like
Migro Staging. - Click Add New Application Password.
Save your password immediately
WordPress shows the generated password (e.g. xxxx xxxx xxxx xxxx xxxx xxxx) only once. Copy and store it before closing the screen.
Configuring Connections
On your local/staging site, go to Migro → Connection tab and fill in:
- Site URL: Full URL of your remote site (e.g.
https://production.com) - Database Host: Usually
localhost,127.0.0.1, or a host provided by your hosting provider - Database Name: The remote site's database name
- Database Username / Password: Database credentials (not your WordPress login)
- API Username: Your WordPress admin username on the remote site
- Application Password: The 24-character password generated in the previous step
Click Test Connection. Once verified, the connection is saved automatically for future use.
Local by WP Engine + Production Server
A common workflow is running your staging environment in Local by WP Engine and pushing content to a live production server. Migro supports this directly.
01
Install Migro on both sites
Install and activate Migro on your Local site and on your production server.
02
Create an Application Password on production
Log into your live production site, go to Users → Profile → Application Passwords, and generate a password for Migro. Save it immediately. It is only shown once.
03
Get your production database credentials
Your hosting provider's control panel (cPanel, Kinsta, WP Engine, Cloudways, etc.) has your database host, name, and credentials. The host is usually localhost or a hostname like mysql.yourhost.com.
04
Configure the connection in Local
On your Local site, go to Migro → Settings → Connection and enter your production server's Site URL, database credentials, and Application Password. Click Test Connection to verify.
Local MySQL socket
Local by WP Engine uses a MySQL socket instead of a standard host. If another site needs to connect to your Local site (pulling from Local instead of pushing to it), paste the socket path from the Database tab in the Local app into the Database Host field. It looks like:
Local socket path
/Users/username/Library/Application Support/Local/run/xyz/mysql/mysqld.sock
When Production Blocks Remote MySQL
Many hosts bind MySQL to localhost and refuse connections from outside the server. That is good practice and you should not change it. If you have SSH access to production, you can reach the database through the SSH session instead, so nothing is ever exposed to the internet.
01
Open a tunnel from the staging machine
Run the command below on the machine that runs your staging site. It forwards local port 3307 to production's MySQL, which stays bound to localhost on the production side.
02
Point Migro at the tunnel
In Migro → Settings → Connection, set Database Host to 127.0.0.1:3307. Database name, user, password and prefix stay exactly as production has them, and so do the Site URL and Application Password.
03
Test the connection
Click Test Connection. Only the database check travels through the tunnel. The REST API check goes over HTTPS to the Site URL as usual.
SSH tunnel
ssh -L 3307:127.0.0.1:3306 user@your-production-host
Keep the tunnel open
The SSH session has to stay open while a copy runs. If it drops partway through, the database check fails and Migro stops. Tools such as autossh keep a tunnel alive if you do this often.
Two things to watch
Any free local port works. 3307 simply avoids clashing with a MySQL server already running on the staging machine. And if your staging site runs inside a container or a VM, 127.0.0.1 inside it is not the machine running the tunnel, so forward to the address the container uses for its host.
Encrypted Database Connections
When Migro connects to the other site's database across a network, it uses TLS whenever the database server supports it. There's nothing to set up. Migro checks certificates against the same list of trusted authorities that WordPress already ships with.
A database on the same server skips TLS. That means a socket path, localhost or 127.0.0.1. That traffic never leaves the machine. An SSH tunnel counts as localhost too, and SSH already encrypts it.
All of this is about the direct database connection only. The REST API connection always travels over the site's own HTTPS.
Checking the status
Open Migro → Settings. Next to Connected over, Migro shows one of these:
- Direct database (encrypted connection, certificate verified)
- Direct database (encrypted connection)
- Direct database (same server)
- Direct database (connection not encrypted)
- REST API (HTTPS)
The Health tab shows the same information. If a database server has no TLS, Health shows a short note rather than a warning. That's common on private hosting networks, and passwords are never sent in plain text. If you'd like every copy encrypted, use required or verify below.
Choosing a mode
Add one line to wp-config.php on the site that starts copies. That's usually staging.
wp-config.php
define( 'MIGRO_REMOTE_DB_TLS', 'verify' );
| Value | What it does |
|---|---|
preferred (default) | Uses TLS when the server offers it. If the server has no TLS, Migro connects without it and the Health tab notes it. |
required | TLS or no connection. The certificate isn't checked, so servers with self-signed certificates work. |
verify | TLS, and the server's certificate must come from a trusted authority and match the database host name. This proves you're talking to your real server. |
off | Never uses TLS. |
Using verify
verify works out of the box with Azure Database for MySQL and other managed databases whose certificates come from a public authority. Some providers, such as Amazon RDS, use their own authority. For those, download the provider's CA file and point Migro at it:
wp-config.php
define( 'MIGRO_REMOTE_DB_TLS_CA', '/path/to/provider-ca.pem' );
Use the host name on the certificate
With verify, the Database Host must be the name on the certificate, for example myserver.mysql.database.azure.com. An IP address won't match.
For developers
The migro_remote_db_tls_mode filter sets the mode from code instead of wp-config.php.
filter
add_filter( 'migro_remote_db_tls_mode', function( $mode ) {
return 'required';
});
Troubleshooting
| Message | What to do |
|---|---|
| This database only accepts encrypted connections. | If MIGRO_REMOTE_DB_TLS is set to off, remove that line. Otherwise, check the server's TLS settings. |
| The database server's certificate could not be verified. | Set MIGRO_REMOTE_DB_TLS_CA to your provider's CA file, and use the host name on the certificate. |
| The database server does not accept encrypted connections. | Turn on TLS on the database server, or remove the database details so Migro connects through the REST API. |
Passive Mode
If your staging site lives on a laptop or a workstation, production can never reach it back. Migro detects this when the sites are paired and turns on Passive Mode. The pairing still works in both directions, but every copy has to be started from the staging side, and production shows a short note explaining this instead of copy buttons.
This is the normal arrangement for a Local by WP Engine staging site paired with a live server, and it combines with the SSH tunnel above. Media uploads travel outbound over HTTPS from staging to production, so they need no extra setup.
Two Local sites on the same machine are not a passive pair. Each can reach the other, so copies can be started from either side.
Copying Content
Once the Setup Wizard locks in your paired connection, you don't pick a connection for each copy; the plugin already knows which environment this site is paired with. Day-to-day copying happens on the Copy Content tab (the first tab on the Migro screen).
The Copy Content tab, top to bottom
The tab is a single guided form. Fill it out in order and click the action button at the bottom.
01
Pick a direction
Two side-by-side cards. On a staging site they read Production ↑ Staging: Send content to your Production site (push) and Production ↓ Staging: Pull content from your Production site (pull). Click whichever direction you want; the chosen card highlights and the rest of the form switches to show items from the source side.
02
Select content
Below Direction you'll see a scrollable list of items from the source environment with a Filter by type dropdown (All Types / Posts / Pages / Product / any registered CPT) and a Select All (N items) checkbox at the top. Each row shows the item title, a type badge, status, and date. A Viewing: Staging Content / Viewing: Production Content chip on the right confirms which side you're listing. Tick whichever items you want to copy; the bottom of the list shows N items selected in real time.
03
Choose a conflict strategy
Two more cards: Replace it (updates matching items on the other site to match this one) or Leave it alone (keeps matching items as they are and only copies new ones). Pick Replace it, even if in sync to copy items again that Migro marks In sync. See Conflict Resolution for how Migro decides what counts as "the same item".
04
Review what every copy includes
A blue info panel below conflict resolution lists what always comes along with every copy: featured images, categories & tags, custom fields (ACF), and Yoast SEO metadata. There is nothing to tick here: it's a confirmation of what's about to ship along with the post body.
05
Decide on a backup
The Back up first checkbox is on by default. Migro will snapshot any destination item that's about to be overwritten so you can roll it back from the Backups tab. Leave it on unless you have a strong reason to skip. If a requested backup ever fails, the whole copy stops safely before touching the other site.
06
(WooCommerce only) Delete orphan variations
If your selection includes variable products, the Delete orphan WooCommerce variations on the destination checkbox becomes relevant. Off by default. Turn it on only when the source side is the authoritative copy of the variation set, so variations you've deleted on the source also get cleared from the destination. See WooCommerce Products for the full behavior.
07
Click the action button
The button label always reflects your direction choice: Copy to Production on a staging site copying up, Copy from Production on a staging site copying down, and the equivalents on a production site. Clicking it kicks off the Live Dashboard.
For single items, skip this tab entirely Pro
If you only want to copy one or two items and you're on a Pro plan, you don't need to come to Copy Content at all. Use Quick Copy from the post list or the Gutenberg sidebar instead, shipping a single item with your default conflict strategy and backup setting in one click. On the free plan, Copy Content is the way to copy any item, including single ones.
Migro handles URL replacement, media deduplication, taxonomy term creation, and page-builder data automatically. You don't set any of that for each copy. Per-feature defaults not visible on the Copy Content tab (alt text sync conflict mode, AI generation toggles, request timeout) live under Migro → Settings and the AI Enhancements tab.
Live Dashboard Real-Time UI
Clicking the action button on the Copy Content tab swaps the form for a live dashboard that updates as each item finishes. Everything stays inside wp-admin, with no separate window or polling page.
Counters & progress bar
Four counters across the top (Successful, Skipped, Failed, Remaining) tick up as the batch runs. A progress bar underneath shows the percentage complete so you have an at-a-glance sense of how far along you are.
Live progress list
As each item finishes, it appears in the feed with a status badge (SUCCESS, SKIPPED, or FAILED) and color-coded row. A Hide Live Progress List toggle collapses the feed once a long copy gets noisy.
Results panel
When the batch is done, a Results panel groups items by outcome (Successful, Skipped, Failed) in collapsible sections. Each card shows the item title and a post-type badge (Post, Page, Product, your CPT) so you can see at a glance what shipped without scrolling through the full feed.
Retry failed items
Failed rows expose a Retry action so a one-off failure (a network blip, a rate limit, a transient remote 5xx) doesn't force you to redo the whole copy. Click Retry on the failed item and Migro re-runs just that one through the same engine.

Conflict Resolution
When Migro finds that an item already exists on the destination site, it uses the conflict resolution strategy you selected.
Migro identifies "the same item" by a sync key: a unique identifier stored in post meta that tracks an item across environments regardless of its post ID. This means renaming or moving a post does not break the connection between environments.
- Replace it (Recommended): Replaces the existing item with the incoming version. All metadata and images are updated. Use this when you want the destination to match the source exactly.
- Leave it alone: Leaves the existing item untouched. Use this when you want to copy only new content.
Copying Media & Attachments
Migro automatically scans your content, featured images, and documents to safely transfer them to the destination site.
Smart Duplication Prevention
To keep your media library clean and prevent duplicate files, Migro uses smart file matching. Before downloading any image or file, it checks the destination site to see if an identical file already exists. If a match is found, Migro skips the upload and links your content to the existing file, saving you disk space and upload time.
How Media is Handled by Plan
- Free Plan: Transfers and re-links all file types: images (JPG, PNG, GIF, WebP), PDFs, ZIP archives, spreadsheets, audio, and video. Featured images and Media Library metadata (title, alt text, caption, and description) are included.
- Pro Plan: Everything Free covers, plus rewriting file links inside serialized page-builder layouts (Beaver Builder, Elementor, Divi, etc.) so referenced media keeps resolving on the destination.
Alt text gets extra treatment beyond simple metadata transfer. Migro also reconciles the inline alt="" baked into post HTML against each image's Media Library value, and can generate missing alts with AI. See Alt Text Sync below.
Alt Text Sync Accessibility
WordPress stores image alt text in two independent places: the attachment's Media Library meta (_wp_attachment_image_alt) and the inline alt="" attribute baked into post HTML when the image was first inserted. After insertion, the two never sync. Update an image's alt in the Media Library and every existing post still renders the stale baked-in value to screen readers, a silent accessibility regression.
Alt Text Sync fixes this during every copy. Available on all plans (free and Pro), it rewrites inline alt attributes on Classic editor and Gutenberg core/image blocks so the copied post matches the current Media Library value. Page-builder serialized data (Beaver Builder, Elementor, Divi) is left alone on purpose: those builders render alt from attachment meta at runtime, so rewriting their JSON would do nothing useful and could corrupt layouts.
How it runs
Alt Text Sync runs on every copy, in both directions, and only after the AI alt-text generator finishes, so any freshly generated alt is included in the reconciliation. Here's what happens for each post:
- The image is copied to the other site and any alt text (including AI-generated values) is written to the Media Library.
- Alt Text Sync scans the post's HTML, locates each image, reads the matching Media Library alt, and rewrites the inline
alt=""to match. - The post is saved with the reconciled HTML, so what the page renders to screen readers matches what's stored on the attachment.
Conflict behavior
Go to Migro → Settings. The Alt Text Sync: On Conflict setting controls what happens when inline alt already has a value:
- Keep the existing alt text in the post (default): Keep the existing inline alt. Only fill empty alts from the Media Library. Safest choice for sites with hand-curated alt text.
- Replace it with the Media Library alt text: Always rewrite inline alt to match the Media Library value, even if a value is already present. Use this when the Media Library is your source of truth (e.g. you've bulk-generated alts with AI and want them everywhere).
Empty alts are always filled from the Media Library regardless of this setting. That is the core accessibility win and there is no reason to skip it.
Pairs perfectly with AI Alt Text
Enable both AI Image Alt Text Generation (below) and Alt Text Sync set to replace, and a single copy will: generate missing alts with AI, write them to the Media Library, and propagate them into every post's inline HTML, all in one pass.
Backups & Restore
When you turn on Back up first in the copy options, Migro saves a snapshot of any content that is about to be overwritten. These snapshots let you undo a copy if something went wrong.
Viewing backups
Go to Migro → Backups. Each backup shows the post title and type, the date and time it was created, and which copy created it.
Restoring a backup
Click Restore next to any backup to roll that item back to the saved version. The current version is overwritten with the backup.
Deleting backups
Click Delete to remove a backup you no longer need. Backups older than 30 days are cleaned up automatically.
Activity
Every copy is recorded. Open the Activity tab to see the full history. Each entry shows:
- The post title and type
- The direction (copied to or from the other site)
- The result: Success, Skipped, or Error
- A timestamp
- Any error message if the copy failed
Activity is kept for 30 days by default. You can change this with Keep activity for in Migro → Settings.
AI Enhancements v2.4+
Migro 2.4 introduces AI-driven enhancements that fill in missing accessibility and SEO metadata during a copy, so you don't have to backfill it manually after the fact. The AI features piggyback on WordPress 7.0's built-in AI Client: meaning Migro never stores your API keys, never asks for them, and never bills you for tokens. You bring your own provider (Anthropic, Google, OpenAI, or any third-party plugin that registers an ai_provider connector), and Migro just calls through it.
What's included
- AI Image Alt Text Generation: Available on all plans (free + Pro). Generates alt text for images that are missing it, both during pull and during push.
- AI Yoast SEO Title & Meta Description: Pro-only. Fills the Yoast meta title and meta description fields when they are blank.
- Per-Feature Provider Picker: Available on all plans. When you have two or more providers configured, you can route each feature to a specific one (e.g. Anthropic for vision, OpenAI for SEO copy).
Why "bring your own provider"?
WordPress 7.0 ships a first-party AI Client and a connector registry under Settings → Connectors. Provider plugins (e.g. "AI Provider for Anthropic", "AI Provider for Google") register themselves there and hold the API key in WordPress options, environment variables, or PHP constants. Migro reads that registry and calls through it, so the same provider you configured for any other AI-aware plugin works automatically for Migro, and revoking the key in one place revokes it everywhere.
Connect a Provider
Before any AI feature will run, you need WordPress 7.0+ and at least one AI provider plugin with credentials configured.
01
Update to WordPress 7.0 or higher
The AI Client (wp_ai_client_prompt()) and connector registry (wp_get_connectors()) are core APIs introduced in WordPress 7.0. On older versions the AI Enhancements tab will tell you what's missing and the feature toggles will refuse to save as enabled.
02
Install an AI provider plugin
Install one of the first-party AI provider plugins from WordPress.org, for example AI Provider for Anthropic, AI Provider for Google, or AI Provider for OpenAI. Any plugin that registers an ai_provider connector works; you are not locked to a specific vendor.
03
Enter your API key under Settings → Connectors
Go to WordPress Admin → Settings → Connectors, find your provider, and paste in your API key. You can also supply the key via an environment variable or PHP constant if your hosting locks the options table down; Migro detects all three sources.
04
Open Migro → AI Enhancements
You'll see a green banner naming the configured provider (or listing all configured providers if you have more than one). If you see a yellow banner saying "AI Client detected, but no provider is connected", revisit step 3.
You pay your provider directly
Migro does not proxy AI requests or mark up token usage. Your provider bills you according to their own pricing for each generation. Use the Cache TTL setting (described below) to avoid paying for the same generation twice.
AI Image Alt Text Generation
Available on all plans. Generates descriptive, accessibility-grade alt text for images that don't have any, using a vision-capable AI provider. Existing alt text is never overwritten. This feature only fills the blanks.
Enabling it
- Go to Migro → AI Enhancements.
- Tick Generate alt text for images that are missing it.
- If you have multiple providers configured, choose which one to use for alt text (defaults to the SDK's pick).
- Click Save Changes.
What it scans
The generator runs on copies in both directions. For each copied post it inspects:
- Inline images in post_content: both the Gutenberg
core/imageblock (wp-image-{ID}class hook) and Classic editor markup. - Attached media: any attachment whose
post_parentmatches the copied post. This is how page-builder layouts (Beaver Builder, Elementor, Divi) get covered. Their images live as attached media even when not present inpost_content.
For each image with no alt, Migro sends the image (as base64) plus the post title/excerpt as context to the configured provider, gets a concise description back, sanitizes and truncates it, and writes it to _wp_attachment_image_alt. On push, the generated alt is also written to the remote attachment's postmeta via the database connection, mapping local attachments to remote via the _migro_hash sync key.
Combine with Alt Text Sync for the full pipeline
The AI generator writes alt to Media Library meta. The Alt Text Sync feature (priority 20, runs immediately after) then writes that same alt into the post's inline HTML. Enable both and a single copy generates alt text for every missing image AND propagates it into every post that uses that image.
Vision-capable providers
Alt text generation needs a provider whose model can accept an image as input. Anthropic Claude (Haiku/Sonnet/Opus 3+), Google Gemini, and OpenAI GPT-4o-class models all support this. If your selected provider can't accept images, the generation call will fail gracefully and the original (empty) alt will remain. Migro never stops a copy because of an AI failure.
AI Yoast SEO Meta Pro
Pro-only. Generates a Yoast SEO title and meta description for posts where those Yoast fields are empty, using the post title, excerpt, and content as context. Runs only on pulls, when content is copied to this site. It's designed for the "I just pulled production into staging and now I want SEO meta for everything I haven't filled in yet" workflow.
Enabling it
- Make sure Yoast SEO is installed and active on this site.
- Go to Migro → AI Enhancements.
- Tick Generate Yoast title & meta description for posts missing them.
- If you have multiple providers configured, pick the one to use for Yoast meta (often a fast text model like Claude Haiku or GPT-4o-mini is plenty here).
- Click Save Changes.
Yoast Premium AI takes priority
If Yoast SEO Premium is active and its own AI generator is present, Migro automatically skips its Yoast meta generation to avoid two layers writing to the same fields. The toggle in the AI Enhancements tab will be disabled with a note explaining why. Use Yoast Premium's AI features through Yoast's UI in that case.
What gets generated
- SEO title: A keyword-aware page title formatted for SERPs. Written to the
_yoast_wpseo_titlepostmeta. - Meta description: A 140-155 character summary appropriate for search snippets. Written to
_yoast_wpseo_metadescpostmeta.
Both fields are only filled when empty. If you have already written a SEO title or description in Yoast, Migro will not touch it.
Per-Feature Provider Picker
The AI Enhancements tab adapts to how many providers you have configured:
- Zero providers: A yellow banner tells you to connect a provider under Settings → Connectors. Feature toggles will not save as enabled.
- One provider: A green banner names the provider (e.g. "Provider: Anthropic"). All AI features route through it. No picker is shown.
- Two or more providers: Each enabled feature gets its own radio group letting you pick the provider for that specific task.
Typical multi-provider setups
- Anthropic for vision, OpenAI for copy: Route AI Image Alt Text through Claude (excellent at vision + accessibility tone) and AI Yoast Meta through GPT-4o-mini (cheaper, fast SERP-style writing).
- Google for everything: Gemini 2.5 handles both vision and text well, and is often the cheapest option in token costs. Configure only the Google connector and skip the picker entirely.
- Cost vs. quality A/B: Configure two providers and flip between them in the picker to compare generation quality on the same content before committing to one.
The picker is purely about routing. Both providers receive the same prompt structure; only the model behind the call changes. If you select a provider and later remove its API key, Migro detects that the selection is no longer valid and falls back to letting the SDK pick a default; your copies never break because of a stale provider selection.
Cost & Caching
AI generation is the only part of Migro that costs money per use (you pay your provider, not Migro). Two settings exist to keep that cost predictable.
Result cache
Migro caches every AI response keyed by the input that produced it (e.g. for alt text, by the image hash + post title context). If the same copy runs again within the cache window, the cached value is reused and no provider call is made. This matters most for retries: if a network blip causes you to click Retry All Failed, the AI calls from the first attempt don't get re-billed.
- Cache TTL (days): How long AI responses are reused before the cache expires. Default: 30 days. Set higher if your content rarely changes; lower if you want fresher generations.
Estimating cost before you turn it on
Rule of thumb per call, at provider list prices as of 2026:
- Image alt text: ~$0.001–$0.003 per image with Claude Haiku or Gemini Flash; ~$0.01–$0.03 with Claude Sonnet/Opus or GPT-4o. Multiply by the number of images currently missing alt text across the items you copy.
- Yoast meta: ~$0.0005–$0.002 per post with a small model; the prompt is short and the output is two short strings.
For a 500-post copy with 1,500 missing alts, expect $1.50–$5 on a budget model and $15–$50 on a flagship model. Run a small batch first to calibrate against your actual content and provider.
Testing without spending money
Developers extending Migro can use the migro_ai_mock_generate_alt and migro_ai_mock_generate_yoast filters to inject mock responses during tests. The unit test suite uses these to exercise the whole pipeline without ever calling a real provider.
Pro Features Pro
The free version covers unlimited copies of posts and pages with images, categories, tags, and a full backup & restore workflow. Pro unlocks the complete developer toolkit: custom content types, ACF, Yoast SEO, WooCommerce, page builders, scheduled copies, WP-CLI, and AI Yoast meta generation.
ACF & Yoast SEO
Pro includes full bridging of Advanced Custom Fields and Yoast SEO data. Migro scans for ACF relationship fields, galleries, repeater arrays, and all Yoast metadata options (focus keyword, title, indexing rules) and mirrors them accurately across environments.
Taxonomies & Custom Post Types
In addition to standard categories and tags, Migro Pro bridges Custom Post Types and Custom Taxonomies natively. It evaluates parent-child taxonomy trees to ensure category relationships never break during a copy.
Quick Copy
Quick Copy adds a one-click copy link directly to your post and page lists. Hover over any item in your list table and click Copy to Production (or Copy from Staging, depending on your environment) to copy that single item with your default settings, without opening the Copy Content tab.
Gutenberg Sidebar Integration
When editing a post in the Gutenberg block editor, a custom Migro Sidebar Panel appears in the right sidebar. You can start a copy directly from the sidebar without leaving your writing flow. The button label shows the direction for this site (e.g. "Copy to Production" or "Copy from Staging") based on the current site's configured role.
Confirmation before every copy
Quick Copy shows a confirmation pop-up before any copy starts, displaying the target site, direction, and whether this is a new item or a replacement. This prevents accidental copies to production.

Page Builder Support
When copying content built with a page builder, layout styles need to be regenerated on the destination site. Migro handles this automatically after each copy, with no configuration needed. It detects which builders are active and triggers the right cache rebuild for each.
- Elementor: Regenerates the Elementor CSS cache for copied posts
- Divi: Triggers a Divi CSS rebuild
- Beaver Builder: Refreshes the builder cache
- WPBakery: Updates shortcode rendering
- Oxygen Builder: Regenerates CSS assets
- Bricks Builder: Regenerates builder assets
- Thrive Architect: Triggers content regeneration
WooCommerce Products Pro
Migro Pro copies WooCommerce products with a dedicated engine, not a generic CPT pass-through. It understands product variations, downloadable files, tax/shipping classes, attribute taxonomies, and the relationship meta that ties grouped/upsell/cross-sell products together. Copy a single product or your entire catalog with the same workflow you use for posts and pages.
What gets copied
- Simple, grouped, external, and variable products: All product types including their full set of variations.
- Pricing, stock, and inventory: Regular price, sale price, sale schedule, stock quantity, backorder rules, and per-variation stock are preserved verbatim. (See the "Variation stock preservation" note below.)
- Product images and galleries: Featured image plus the gallery, deduplicated by hash like every other Migro media transfer.
- Downloadable products: File URLs are automatically rewritten to point at the destination's
wp-content/uploads/base so downloads work immediately on the target site. - Attribute taxonomies: Global attributes (the
pa_*taxonomies) are bootstrapped on the destination if missing, then assigned to the copied product. - Tax & shipping classes: Auto-created on the destination when they don't exist, so a product never lands with an orphaned class reference.
- Related products: Grouped product children, upsells, and cross-sells are automatically queued and copied before their parent, so relationship meta points at real destination IDs (not orphaned local ones).
Related-product auto-prepend
WooCommerce stores upsells, cross-sells, and grouped product children as arrays of post IDs on the parent product. If you copy the parent without those children, the meta on the destination points at IDs that don't exist (or worse, exist but reference unrelated content). Migro detects related product references during the resolve phase and inserts them at the front of the copy queue so they are copied first, then translates the parent's relationship arrays to the destination's IDs before saving.
Orphan variation cleanup
When you edit a variable product on the source site and delete some variations, those deleted variations stick around as orphans on the destination after a copy unless you tell Migro to clean them up. The Delete orphan variations option (admin checkbox + --delete-orphan-variations CLI flag) removes any variation on the destination that no longer has a matching parent variation on the source. Opt in when you want strict source-of-truth syncing; leave it off when you want to preserve historical variations.
Variation stock preservation
A common bug in naive WooCommerce sync tools is wiping variation stock when the parent product is updated. Migro's engine reads each variation's stock state before the parent write and replays it after, so a push that updates a product description doesn't accidentally zero out variation inventory on production.
Skipping WooCommerce attribute taxonomies in CPT registration
Migro's CPT auto-registration intentionally skips the pa_* attribute taxonomies. WooCommerce manages these through its own UI, and registering them generically would cause duplicate admin menus and layout issues on the destination. They are still copied as taxonomy terms, not re-registered as standalone taxonomies.
Copying products from the CLI
WooCommerce products are just another post type to wp migro: pass --type=product. The orphan-variation flag becomes --delete-orphan-variations. Example: wp migro push --type=product --all --delete-orphan-variations --yes --user=admin.
Scheduled Copies Pro
With Migro Pro you can save a push or pull and have it run automatically (every hour, twice a day, daily, or weekly) in the background, through the same engine as a manual copy. Set up a nightly content sync from staging to production once and leave it running.
Why teams use it
Keep a content-staging site continuously mirrored to production, ship editorial batches overnight to avoid peak traffic, or guarantee a recurring one-way sync without anyone remembering to click a button. Every scheduled run takes a backup first by default, the same safety net as a manual run.
Creating a schedule
Go to Migro → Schedules. Fill in the form and click Save schedule:
- Label: A friendly name so you can recognize it later (e.g. Nightly post sync).
- Direction: Push (this site → paired site) or Pull (paired site → this site).
- Post type: One post type per schedule.
- Selection: All published items of that type, or a specific list of IDs. Use Browse & select… to pick items visually from the source environment.
- Run every: Hourly, twice daily, daily, or weekly, with the exact time(s)/weekday in your site's timezone.
- If it already exists: Replace it or leave it alone.
- Options: Optionally skip media, skip taxonomies, or skip the backup (not recommended).


Managing schedules
The table at the top of the Schedules tab lists every saved schedule with its direction, what it copies, cadence, next run time, last result, and status. Each row has actions:
- Run now: Execute the schedule immediately, regardless of its next due time or enabled state. Great for testing.
- Enable / Disable: Pause a schedule without deleting it. Disabled schedules are skipped by the scheduler.
- Delete: Remove the schedule permanently.
The Last result column shows the outcome of the most recent run and when it ran, in your site's timezone and language.
Schedules rely on WordPress cron
The scheduler checks for due jobs roughly every 15 minutes via WP-Cron, so a run can start up to ~15 minutes after its scheduled time. Low-traffic sites should trigger WP-Cron from a real system cron for reliable timing; see the WP-CLI section below for a robust setup. Each scheduled run executes as its owner and re-checks that the owner still has permission to copy.
WP-CLI Commands Pro
Migro Pro registers a full wp migro command namespace so you can run copies and manage schedules from the terminal, CI pipelines, deploy scripts, and system cron. The WP-CLI surface is Pro-only and is available automatically wherever WP-CLI and Migro Pro are both installed.
Capability model: run as a real user
CLI commands enforce the same capabilities as the admin UI, checked against the user you pass with --user=. Running a copy requires a user who can copy content (administrator or editor); creating, editing, or deleting schedules requires an administrator. Always pass --user=<admin> in cron and CI so jobs run least-privilege and never as an anonymous context.
Inspecting the connection
wp migro status prints the current environment, the paired site, and connection health. wp migro connections list lists configured connections.
status & connections
# Show environment + paired-site health
wp migro status --user=admin
# List configured connections
wp migro connections list --user=admin
# Machine-readable output
wp migro connections list --format=json --user=admin
Running a copy
wp migro push copies from this site to the paired site; wp migro pull brings content the other way. Both take the same options. Defaults intentionally mirror the admin UI: media, taxonomies, and a backup are all on unless you explicitly opt out.
| Flag | Description |
|---|---|
--type=<types> | Comma-separated post types (e.g. post,page,product). Required unless --ids carries its own single type. |
--ids=<ids> | Comma-separated post IDs. Mutually exclusive with --all; requires exactly one --type. |
--all | Every published item of the given --type(s). Requires --type. |
--conflict=<mode> | overwrite (default) or skip items that already exist on the destination. |
--skip-media | Do NOT copy media/attachments. Copied by default; skipping breaks page-builder media (Beaver Builder, Elementor, Divi). |
--skip-taxonomies | Do NOT copy categories/tags. Copied by default. |
--skip-backup | Do NOT take a backup first. Taken by default; if a requested backup fails the copy stops. |
--dry-run | Resolve and print the item set + target connection without calling the engine. Exit 0. |
--yes | Skip the interactive confirmation. Required for cron / non-interactive use. |
--connection=<id> | Forward-compatible with multi-connection support; currently only the active paired connection is valid. |
examples
# Preview what a full post sync would move; touches nothing
wp migro push --type=post --all --dry-run --user=admin
# Push every published post and page to production (non-interactive)
wp migro push --type=post,page --all --yes --user=admin
# Push three specific posts, skipping items that already exist
wp migro push --type=post --ids=12,40,77 --conflict=skip --yes --user=admin
# Pull all products from production into staging
wp migro pull --type=product --all --yes --user=admin
# Push pages but don't take a backup first (faster, less safe)
wp migro push --type=page --all --skip-backup --yes --user=admin
The command exits 0 on success and 1 on failure, so CI pipelines and deploy scripts can branch on the result.

Managing schedules from the CLI
Everything the Schedules tab does is available as wp migro schedule <subcommand>: handy for provisioning environments from a script or version-controlling your copy schedule.
| Subcommand | Description |
|---|---|
schedule list | List saved schedules. Supports --format=table|json|csv|yaml. |
schedule add | Create a schedule. Requires --direction and --type. |
schedule remove <id> | Delete a schedule by id. |
schedule enable <id> | Enable a disabled schedule. |
schedule disable <id> | Pause a schedule without deleting it. |
schedule run <id> | Run a schedule now, ignoring its due time and enabled state. |
schedule add accepts: --direction=push|pull (required), --type=<type> (required, single type), --ids=<ids> (omit for all published), --recurrence=hourly|twicedaily|daily|weekly (default daily), --label=<label>, --conflict=overwrite|skip (default overwrite), --skip-media, --skip-taxonomies, --skip-backup, and --disabled (create it paused).
schedules
# Create a daily push of all posts at the default cadence
wp migro schedule add --direction=push --type=post --label="Nightly posts" --user=admin
# Weekly pull of products, skipping conflicts
wp migro schedule add --direction=pull --type=product --recurrence=weekly --conflict=skip --user=admin
# List schedules as a table
wp migro schedule list --user=admin
# Run one immediately to test it
wp migro schedule run sch_a1b2c3d4e5f6 --user=admin
# Pause / resume / delete
wp migro schedule disable sch_a1b2c3d4e5f6 --user=admin
wp migro schedule enable sch_a1b2c3d4e5f6 --user=admin
wp migro schedule remove sch_a1b2c3d4e5f6 --user=admin
Reliable scheduling with system cron
On low-traffic sites WordPress's pseudo-cron only fires when someone visits the site, which makes scheduled copies run late or not at all. The robust setup is to disable WP pseudo-cron and drive it from a real system crontab.
wp-config.php
define( 'DISABLE_WP_CRON', true );
crontab -e
# Fire all due WordPress cron events (incl. Migro schedules) every 5 min
*/5 * * * * cd /var/www/site && wp cron event run --due-now --user=admin >/dev/null 2>&1
# Or skip the scheduler entirely and run a copy directly each night
0 2 * * * cd /var/www/site && wp migro push --type=post,page --all --yes --user=admin >> /var/log/migro.log 2>&1
Two valid patterns
Either let the WordPress cron runner drive your saved Schedules (UI-managed, visible in the Schedules tab), or call wp migro push/pull directly from cron for a scriptable, log-everything approach. Both run the same copy engine; pick whichever fits how your team operates.
White-Label Setup Agency
Agency plans can swap the Migro brand for your own on every client site: menu label, page titles, logo, and license notices adopt your agency name/logo instead of "Migro". It's a display-only swap of the admin surfaces your clients see day to day. See "What stays Migro-branded" below for what doesn't change.
Setting it up
Branding is configured once, in your agency dashboard, not on each client's site:
- Log in to your agency dashboard at migro.dev/account and open Branding.
- Set your brand name, upload a logo, and choose whether to hide the plan-tier badge and Migro's own promotional links (docs/support links, the review prompt, the beta banner).
- Save. Every client license under your agency picks up the new branding the next time its license checks in.
A license checks in automatically once a day. To apply a branding change immediately on a specific client site, go to Migro → Settings → License on that site and click Refresh License. This re-validates against the server and reloads the page with the current branding.
What changes on the client's site
- The admin sidebar menu label and icon
- Page titles across the plugin (main screen, Setup Wizard, license step, completion screen)
- The logo shown on the main admin page and throughout the Setup Wizard
- License admin notices (e.g. activation and expiry messages reference your brand name, not Migro)
- The plan-tier badge next to the menu item, if you've chosen to hide it
- Migro's own promotional surfaces (Need Help box, setup-wizard support line, page-builder-warning docs link, beta banner), if you've chosen to hide them
What stays Migro-branded
White-label is a cosmetic admin-UI swap, not a rebuild of the plugin. These always stay as Migro, regardless of branding settings:
- The plugin's entry in the WordPress Plugins list and its slug
- The auto-updater (client sites still update from the same Migro release channel)
- The plugin's text domain and translation files
A fully renamed, independently-distributed build (own slug, own updater, own text domain) is the Enterprise "Rebranding" option, not part of Agency.
Degrade behavior
Branding depends on an active Agency (or Enterprise) license. If a client's license lapses, or you disable branding from the dashboard, the next license check reverts that site's admin UI to standard Migro branding automatically, with no action needed on the client's site. Your saved brand name, logo, and toggles aren't lost; they're restored the next time the license is active and validated.
Why there's no branding tab on the client's site
Branding is deliberately kept out of each client's own wp-admin. It's set once, by you, in your agency dashboard, so a client browsing their own Settings can't stumble onto a "White Label" tab and discover the tool underneath is Migro.
What Gets Copied
Free version (all plans)
- Post title, slug, content, and excerpt
- Post status (published, draft, scheduled)
- Post date and modified date
- Author attribution
- Featured image
- All media files referenced in the post: images (JPG, PNG, GIF, WebP), PDFs, ZIP archives, spreadsheets, audio, and video
- Post meta (all key-value pairs)
- Categories and tags (with full hierarchy)
- Parent-child relationships for hierarchical post types
- Comment status and ping status
- Alt Text Sync: Reconciles inline alt with Media Library on every copy
- AI Image Alt Text: Optional. Fills missing alts using your configured AI provider (WP 7.0+)
Pro adds
- Custom Post Types: Any registered CPT, including portfolio items, events, and anything else
- Advanced Custom Fields: All ACF Free and ACF Pro field types: repeaters, flexible content, image fields, gallery fields, and relationship fields
- Yoast SEO: Meta titles, meta descriptions, focus keywords, canonical URLs, OpenGraph data, Twitter Card data, and schema markup
- AI Yoast SEO Meta: Optional. Generates missing Yoast title + meta description using your configured AI provider
- WooCommerce Products: Simple/grouped/external/variable products with pricing, SKU, stock (per-variation), weight, dimensions, images and galleries, attribute taxonomies, tax/shipping classes, downloadable file URL rewrites, and auto-prepended related products (children, upsells, cross-sells)
- Custom Taxonomies: Any taxonomy registered by themes or plugins
- Page Builder CSS: Auto-regenerated on the destination after each copy
Settings Reference
Go to Migro → Settings. All settings are visible to site admins only.
General Settings
- This Environment Is: Staging or Production. Tells Migro what role this site plays and controls push/pull button labels throughout the plugin.
- Batch Size: How many items to process at once. Lower values are safer for large content or slow connections. Default: 10.
- Timeout (seconds): How long to wait for a remote response before the request fails. Increase this for slow or high-latency connections. Default: 300.
- Activity on both sites: When on, activity is written to both the local and remote site, so you can see the full activity history from either environment.
- Keep activity for: How long activity entries are kept before automatic cleanup. Default: 90 days.
Quick Copy Settings
- If it already exists: What happens when a Quick Copy item already exists on the other site. Leave it alone keeps the existing item untouched; Replace it updates it. Default: Replace it.
Alt Text Sync
- If inline alt text already exists: Controls what happens when a post's inline
alt=""already has a value. Keep the existing alt text in the post leaves it as is; Replace it with the Media Library alt text updates it. Empty alts are always filled regardless of this setting. Default: keep.
Set Up Your Copy Workflow
- Current Paired Environment: Shows the URL and last-tested timestamp of the site this installation is connected to. Use Delete connection to unpair the sites.
- Update Connection: Opens the connection form to change the remote site URL, database credentials, or Application Password without running the full Setup Wizard again.
Security & Performance
Migro includes several security and performance safeguards built into the core copy engine.
1. Rate Limiting Safeguards
To protect both staging and production environments from server resource exhaustion, denial-of-service (DoS) states, or brute force attacks, Migro enforces strict transient-based rate limits on key administrative actions:
- Connection Testing: Limited to 5 attempts per minute. If this threshold is exceeded, subsequent attempts are blocked for 60 seconds with a descriptive error.
- Starting copies: Limited to 10 requests per hour to prevent high-frequency server-to-server load spikes.
2. Native Stored Password Encryption (libsodium)
Migro guarantees that no remote credentials (database passwords, API passwords, or licensing secrets) are ever written in plaintext or simple reversible formats (like base64) to the database. On environments supporting libsodium (PHP 7.2+ native extension), Migro automatically uses high-security authenticated encryption (AEAD) with unique key generation. Sodium is required: without it Migro cannot store credentials or verify your license, and the Health tab says so. If WordPress salts are rotated in wp-config.php and stored secrets can no longer be decrypted, Migro surfaces a helpful alert instructing the admin to re-enter credentials.
3. Privacy-Compliant Opt-In Telemetry
Starting in version 2.2.8, Migro features a completely anonymized, privacy-compliant heartbeat tracking system to help us improve the plugin's speed and compatibility. This tracking is 100% opt-in. When you consent, Migro transmits a weekly payload to migro.dev, rate-limited to 10 attempts per hour. The data is fully aggregated and includes:
- Active PHP version and WordPress version
- Current website language locale
- License category (Free or Pro)
- Anonymous copy counts (direction and number of items)
Troubleshooting
Connection issues
- Database connection failed: Re-verify your database host, username, password, and port. Ensure your database server's firewall allows remote connections from your local/staging IP.
- REST API connection failed: Confirm the Site URL includes
https://orhttp://. Application passwords require WordPress 5.6+ with SSL enabled on standard setups.
Copy issues
- Images not copying: Ensure the source site is accessible via public HTTP and the target site's
wp-content/uploads/directory has write permissions (755). - Missing content blocks: Use Replace it (not Leave it alone) for existing articles to ensure content is updated.
Debug Mode
To enable granular logging, add the following to your wp-config.php:
wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Check /wp-content/debug.log for API calls and database SQL execution from Migro.
Still stuck?
Email us at support@migro.dev with your debug log attached. Pro users get priority response.
FAQ
Do I need to install Migro on both sites?
Yes. Migro needs to be active on both the staging and production site.
Does Migro work with multisite?
Migro is designed for single-site installations. Multisite support is not currently available.
What happens to images that already exist on the destination?
Migro uses MD5 hashing to detect duplicate images. If an identical image is already in the destination's Media Library, Migro links to the existing attachment instead of uploading a copy.
Can I copy from production to staging?
Yes. Pull and Push work in both directions. You can pull content from production into staging just as easily as pushing from staging to production.
Will copying a post change its URL on the other site?
Migro preserves the original slug. The URL on the destination will match the URL on the source site, unless the permalink structure differs between environments.
Does Migro copy users?
No. User accounts are not copied. If a post author does not exist on the destination, the post is assigned to the admin who ran the copy.
Is my database password stored securely?
Database passwords are encrypted before being saved to the WordPress options table. They are never stored or transmitted in plain text.
What if a copy fails halfway through?
Each item is copied on its own. If one item fails, the others continue. The live dashboard shows a Retry button on any failed item so you can re-run just that one without restarting the whole batch. The Activity tab also shows exactly which items succeeded, which were skipped, and which failed with an error message.
Does Migro handle WooCommerce product variations?
Yes, with Pro. Products, variations, pricing, stock, galleries, related products, and downloadable file URLs all copy together. See WooCommerce Products for the full detail.
Can I use Migro with a staging environment on a different server?
Yes, as long as you have the remote site's database credentials and can create an Application Password on that site.
Does Migro store my AI provider's API key?
No. AI features use WordPress 7.0's built-in AI Client and connector registry. You connect a provider once under Settings → Connectors (Anthropic, Google, OpenAI, or any third-party) and Migro just calls through it. Keys never touch Migro's options table or any migro.dev server. Revoke a key in Settings → Connectors and the AI features stop working everywhere immediately.
Do I need WordPress 7.0 to use Migro?
No. The whole copy engine, including Alt Text Sync, runs fine on WordPress 5.6+. WordPress 7.0+ is only required if you want to use the AI Enhancements tab. Without it, the tab is simply hidden.
Will AI features overwrite alt text or SEO meta I've already written?
No. Both the AI alt text generator and the AI Yoast meta generator only fill empty fields. Anything you've written by hand is preserved. The only feature that can overwrite existing inline alt is Alt Text Sync, and only when you explicitly set it to Replace it with the Media Library alt text.
How much will AI generation cost me?
You pay your provider directly; Migro does not mark up tokens. As a rough guide, a 500-post copy with 1,500 missing alts is typically $1.50–$5 on a budget vision model (Claude Haiku, Gemini Flash) and $15–$50 on a flagship model (Claude Sonnet/Opus, GPT-4o). The 30-day result cache means running the same copy again costs nothing extra.
What if my provider's vision model can't read an image?
The AI call fails gracefully and the original empty alt is left alone. The copy itself continues without error. Migro never stops a copy because of an AI failure. Pick a vision-capable model (Claude Haiku/Sonnet/Opus, Gemini Flash/Pro, GPT-4o-class) and this should be rare.
Question not answered?
Email us at support@migro.dev. Pro users get priority response.