=== Mainfolk Migrator ===
Contributors: Champlin Enterprises
Tags: migration, export, mainfolk
Requires at least: 5.6
Requires PHP: 7.4
Stable tag: 0.2.0
License: GP-2.0-or-later

Export your WordPress site to Mainfolk with one click.

== Description ==

Mainfolk Migrator lets a WordPress site owner send their whole site, pages,
posts, primary menu, and brand logo, to Mainfolk (a website builder) with a
single click from Tools > Migrate to Mainfolk.

There is nothing to configure and no connection key to enter. When you click
"Export to Mainfolk," the plugin generates a one-time token and posts your
site's export payload to Mainfolk. Mainfolk proves the export is genuine by
calling this site's public verify endpoint with that token; only then does it
receive your site's admin email so it can send you a login link. No data
leaves your site until you click "Export to Mainfolk," and the token is only
valid for a few minutes and only usable once.

This is an internal/beta plugin used by Champlin Enterprises to onboard
clients into Mainfolk. It is NOT published on WordPress.org and is not
intended for general distribution.

== Installation ==

1. Zip the `mainfolk-migrator` folder, or copy it directly into
   `wp-content/plugins/mainfolk-migrator/` on the target site.
2. Activate "Mainfolk Migrator" from the Plugins screen.
3. Go to Tools > Migrate to Mainfolk.

== Settings ==

* **Mainfolk URL** - the base URL of the Mainfolk instance to export to.
  Defaults to `https://mainfolk.com`. Tucked under "Advanced" since almost
  no one needs to change it.

== Usage ==

1. Go to Tools > Migrate to Mainfolk and click "Export to Mainfolk."
2. On success, a link appears: "Your site is on Mainfolk - open it ->." A
   link is also emailed to your site admin. On failure, the error message
   from Mainfolk is shown above the form.

== Changelog ==

= 0.2.0 =
* Keyless, self-serve export flow. Removed the shared-secret and email
  settings; Mainfolk now authenticates the export by calling this site's
  public `/wp-json/mainfolk-migrator/v1/verify` endpoint with a one-time
  token, then is handed the site's admin email to send the login link.

= 0.1.0 =
* Initial internal/beta release.
