=== WellTend Settings Snapshots ===
Contributors: quangthien27
Tags: settings, export, import, staging, configuration
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.5.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Save your settings, move them between sites as one JSON file, see what changed in plain words, and undo any restore. Not a backup.

== Description ==

WellTend Settings Snapshots saves a copy of your site's settings, shows what changed since, and puts them back when you ask. Everything lives under **WellTend > Snapshots**.

**Settings, not a backup.** A snapshot saves settings, not posts, media or files. Keep a real backup too.

= What it covers =

* **Snapshots**: save your settings with one click, or on a schedule (off until you turn it on).
* **Compare**: two snapshots, a snapshot and your site, or a file and your site. Changes read in plain words ("Site title changed from 'A' to 'B'"), or as raw JSON.
* **Restore**: put back everything, or only what you tick. A safety snapshot is taken first, so every restore can be undone.
* **Export and import**: move settings from staging to live as one JSON file, with a preview of every change before anything is written.

= What a snapshot holds =

* WordPress settings: General, Writing, Reading, Discussion, Media, Permalinks, Privacy.
* The active theme's Customizer settings.
* Popular plugins: Yoast SEO, Rank Math, WooCommerce (general, products, tax, accounts, emails), WP Mail SMTP, Admin and Site Enhancements, and the other WellTend plugins.
* The other settings of any plugin or theme that are safe to save. These are only restored when you tick them, one by one, and never deleted.

= Safe by design =

* Passwords, API keys, tokens, licence keys and salts are never exported. A target site keeps its own.
* Site address, admin email and upload path are left out of exports by default, so a staging file cannot break the live site.
* Imports are JSON only. You always see a preview first.
* Only administrators can see or change anything. No tracking and no outside requests.

= WP-CLI =

`wp welltend config export|import|diff|snapshot|restore`

Exports are sorted and stable, so an unchanged site gives a byte-identical file you can keep in git. `diff` exits with status 1 when settings differ, so CI can use it.

= Learn more =

* [Plugin page and docs](https://allwpcare.com/plugins/welltend-settings-snapshots/)
* [How to export and import WordPress settings](https://allwpcare.com/guides/export-import-wordpress-settings/)
* [Move settings from staging to live without overwriting content](https://allwpcare.com/guides/move-settings-staging-to-live/)
* [Someone changed my settings: find and undo it](https://allwpcare.com/guides/find-and-undo-changed-wordpress-settings/)
* [Fixes for common WordPress errors](https://allwpcare.com/errors/) and [free WordPress tools](https://allwpcare.com/tools/)

WellTend is made by [AllWPCare](https://allwpcare.com/), a family of free plugins and guides for looking after WordPress sites.

== Frequently Asked Questions ==

= Is this a backup plugin? =

No. It saves your settings, not posts, media or files. Keep a real backup too.

= What is never saved? =

Posts, pages, comments, users, media, theme and plugin files, passwords and API keys, and payment gateway settings. Caches, logs, scheduled tasks, user roles, active plugins, automatic update choices, version markers and widgets are left out too.

= Will restoring change settings of plugins it does not know? =

Only if you tick them. "Restore everything" and a plain import leave other plugin and theme settings alone. When you tick one, you confirm that you checked it, a safety snapshot is taken first, and Undo puts back exactly what was changed. Nothing is ever deleted.

= What does "By a plugin" mean in the snapshot list? =

Another plugin saved that copy of your settings before it changed something. These copies are kept until you delete them, like the ones you save yourself.

= Does the export contain my passwords or API keys? =

No. Known secret fields and any field whose name looks like a secret (key, secret, token, password, api, licence, salt, auth, credential) are redacted.

= Why is the site URL missing from my export? =

Environment settings (site URL, home URL, admin email, uploads path) are excluded by default so a staging file cannot break the live site. Pass `--include-env` to the CLI, or tick the option in the export screen, to include them.

= How do I undo a settings restore? =

Every settings restore or import creates a "pre-restore" snapshot first. Restore that snapshot to undo.

= What happens to my snapshots when I delete the plugin? =

They stay in your database, so a reinstall picks up where you left off. Turn on "Delete all snapshots and settings" in the Settings tab before deleting if you want everything removed.

= Does it work on multisite? =

It works per site when activated on a sub-site. There are no network-admin features in this version.

= Is `wp config` affected? =

No. The commands live under `wp welltend config`. To save an export as a file, send the output to one: `wp welltend config export > settings.json`.

== External services ==

This plugin does not connect to any external service. It makes no requests to other servers, and nothing is sent anywhere.

== Screenshots ==

1. Compare a snapshot with your site: every change grouped by area, in plain words, with the value now and in the snapshot.
2. The raw JSON view of the same changes, for developers.
3. Restore only what you tick. The last step lists every change, and a safety snapshot is saved first.
4. The Snapshots list: save a snapshot, open one to compare or restore it, download or delete it.
5. Export / Import: move settings between sites as one JSON file.

== Changelog ==

= 0.5.1 =
* The plugin is now called WellTend Settings Snapshots, so the name says what it saves. Same folder, same settings, same menu.
* Fix: the admin screen now opens on WordPress 6.4 and 6.5. Before, it stayed on "Loading" because those versions lack a script that WordPress 6.6 added.

= 0.5.0 =
* First release on WordPress.org.
* Save settings snapshots of WordPress core, the active theme, supported plugins and the other safe options of any plugin or theme.
* Export and import settings as one portable JSON file, with a preview of every change before anything is written.
* Compare two snapshots, a snapshot and the live site, or a file and the live site, in plain words or as raw JSON.
* Restore only what you tick. A safety snapshot is taken first, so every restore can be undone.
* Scheduled snapshots (off by default), with a limit on how many are kept.
* WP-CLI: `wp welltend config export|import|diff|restore|snapshot`.
