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 Upvotes

2 comments sorted by

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 _fieldname row holding the field_abc123 key, 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 as repeater (the count) plus repeater_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 list piped 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.

1

u/[deleted] Sep 19 '26

Yep, exactly — these are some of the trickier parts of ACF migrations, and we handle these cases already. ACF field references are preserved, repeaters (including nested data) and flexible content are handled with their structure intact, and media fields work inside repeaters as well. We also handle media deduplication on repeated imports, so importing the same data again won’t keep creating duplicate attachments. That’s actually one of the main reasons we added dedicated ACF handling instead of treating ACF data as regular user meta. Thanks for pointing these out — they’re definitely important edge cases. Would you like to try the plugin? I can provide you a free Pro license with no cost 👍🏽