r/WordpressPlugins • • Sep 18 '26
[FREEMIUM] WordPress user export/import that actually handles ACF custom fields (including image fields) — built this into my migration plugin
I maintain a WordPress import/export plugin (Import Export by RockStarLab), and user migrations kept coming up as a pain point — specifically for sites where user profiles have Advanced Custom Fields attached (avatars, company info, membership tier, social links, that kind of thing). WordPress's native export has no idea what to do with any of that, and image fields inside ACF are where it breaks hardest — you either lose them entirely or end up with broken references.
So the workflow I built:
- Filter which users to export (by role, post count, registration date, or even by an ACF field value — e.g. only users on a specific membership plan)
- Choose exactly which fields to include, standard WordPress fields plus any registered ACF fields
- Export to CSV/XLSX/JSON/XML/ODS depending on what you're doing with it
- On import: auto field-mapping if the file came from the same plugin, manual mapping if not
- Match existing users by email to avoid dupes / update instead of duplicate
- If ACF fields contain images, the plugin downloads them, adds them to the destination Media Library, and reconnects them to the right field automatically — this was the part that took the most work to get right
Wrote up the full walkthrough here: https://medium.com/@wpimportexport/migrating-wordpress-users-isnt-just-emails-and-passwords-here-s-how-to-move-the-full-profile-6a6c7a208595
It's a PRO feature, free plugin includes a 1-month PRO trial if anyone wants to poke at it without committing.
Curious if anyone's dealt with migrating membership/author data with custom fields some other way — WP-CLI, custom scripts, whatever. Always interested in edge cases I might not be handling yet (multi-value ACF fields, repeaters, etc. — haven't fully stress-tested those).
1
u/TopSydeWP Sep 19 '26
two edge cases that bite people on user ACF exports: the hidden reference meta and repeater flattening. every acf value in usermeta has a sibling
_fieldnamerow holding thefield_abc123key, and if that doesn't come across acf won't resolve the field on the destination even though the value row exists. repeaters are stored flat asrepeater(the count) plusrepeater_0_subfield,repeater_1_subfield, and nested repeaters go two levels deep on that naming, so anything that only exports declared field names will silently drop rows. same pattern for flexible content, except it also stores the layout names.for images, worth deduping by source url or file hash on import, otherwise a second run of the same file stacks up duplicate attachments in the media library. also acf image fields can be stored as id, url or array depending on the return format, so the id you write back has to match what the destination field group expects.
when i do this by hand across a fleet it's usually wp-cli over ssh,
wp user meta listpiped through a small script, mostly because i can run it on staging first and diff the meta before touching live. the thing a plugin buys you there is the media reattachment, which is genuinely the annoying part.