Skip to content

Add localWP WordPress site import support#2993

Draft
MxchaelA8C wants to merge 1 commit intoAutomattic:trunkfrom
MxchaelA8C:feature/local-wp-site-import
Draft

Add localWP WordPress site import support#2993
MxchaelA8C wants to merge 1 commit intoAutomattic:trunkfrom
MxchaelA8C:feature/local-wp-site-import

Conversation

@MxchaelA8C
Copy link
Copy Markdown

Related issues

  • Fixes #

How AI was used in this PR

AI was used to develop code, which I reviewed and tested across different LocalWP sites.

Proposed Changes

  • Add "Import from Local" option to the Add Site flow. Allows importing from LocalWP (https://localwp.com)
  • Reads LocalWP's sites.json to detect sites.
  • Exports database using LocalWP's MySQL.
  • After import, update site URL to Studio's localhost address and deactivate plugins (which may rely on MySQL-specific features or force HTTPS). On complex sites, plugins would cause crashes.

Testing Instructions

  • Install and configure sites via LocalWP (https://localwp.com)
  • Sites will be detected in Studio, import the site, and it will copy contents from LocalWP and configure.
  • Test site loads as expected

Pre-merge Checklist

  • Have you checked for TypeScript, React, or other console errors?

@wojtekn
Copy link
Copy Markdown
Contributor

wojtekn commented Apr 7, 2026

Hey @MxchaelA8C ! "Import from a backup" already supports importing sites exported from Local. What prevents you fro using that feature?

@MxchaelA8C
Copy link
Copy Markdown
Author

Hey @wojtekn - thanks for sharing that. I wonder if it could be made clearer in the app and in the documentation. I completely missed that this was possible. I'd expect the docs label "Import & Export" https://developer.wordpress.com/docs/developer-tools/studio/import-export/ to somewhat match "Import a backup" that's displayed in the app.

I did search "Local" on the docs before looking into adding this feature, but that's not the most searchable term to surface the information, and the fact that the docs for Studio are shared with WP.com makes searching pretty difficult.

I wonder if some tweaks to the wording or aspects of the UI could help guide users more effectively and make this clearer.

Happy to hear your thoughts :)

Love the work on Studio so far. It's a really great product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants