=== Deployment Toolkit for Contact Form 7 ===
Contributors: jpadweb, komalvaja, jagirbahesh
Tags: contact form 7, contact form, import, export, migration
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Export, import, and migrate Contact Form 7 forms using structured JSON packages and ZIP archives.

== Description ==

Deployment Toolkit for Contact Form 7 lets you export, import, and migrate Contact Form 7 forms using structured JSON packages or ZIP archives. It preserves form templates, mail settings, messages, and additional settings while helping streamline deployments between development, staging, and production sites.

This plugin is designed for developers, agencies, and site administrators who regularly move Contact Form 7 forms between local, staging, and live environments.

This plugin requires Contact Form 7 to be installed and activated.

= Features =

* Export individual Contact Form 7 forms as structured JSON files.
* Bulk export multiple forms into a ZIP archive.
* Import individual JSON exports.
* Import ZIP archives containing one or more Contact Form 7 form exports.
* Automatically detects existing forms and updates them when appropriate.
* Skips importing identical forms.
* Displays a detailed ZIP import summary showing:
** Imported forms
** Updated forms
** Skipped (identical) forms
** Failed imports
* Preserves:
** Form template
** Mail settings
** Mail (2) settings
** Messages
** Additional settings
* Uses deterministic JSON formatting for reliable deployments.

Deployment Toolkit for Contact Form 7 is an independent plugin and is not affiliated with or endorsed by the developers of Contact Form 7.

== Installation ==

1. Install and activate Contact Form 7.
2. Upload the Deployment Toolkit for Contact Form 7 plugin to the `/wp-content/plugins/` directory or install it through the WordPress Plugins screen.
3. Activate the plugin.
4. Navigate to **Contact > Deployment Toolkit**.
5. Export or import Contact Form 7 forms as needed.

== Frequently Asked Questions ==

= Does this plugin require Contact Form 7? =

Yes. Contact Form 7 must be installed and activated before using this plugin.

= What information is exported? =

Each export includes:

* Form template
* Mail settings
* Mail (2) settings
* Messages
* Additional settings
* Export metadata

= Can I export multiple forms? =

Yes.

Use the **Export All Forms** option to generate a ZIP archive containing individual JSON exports for every Contact Form 7 form.

= Can I import ZIP files? =

Yes.

ZIP archives containing one or more valid Contact Form 7 JSON exports are supported.

The importer automatically processes every valid JSON file found inside the archive and displays a summary when the import is complete.

= How are existing forms matched? =

Forms are matched using their title.

If a form with the same title already exists:

* Identical forms are skipped.
* Different forms are updated.

If no matching title exists, a new form is created.

= What happens if a ZIP contains invalid files? =

Only valid Contact Form 7 JSON export files are processed.

Files that cannot be imported are reported in the ZIP import summary.

= Will this plugin modify my existing forms automatically? =

Only when an imported form matches an existing form by title and the imported content differs.

Otherwise, identical forms are skipped or new forms are created.

== Screenshots ==

1.Import forms via ZIP and export all forms as one ZIP file.
2.Export a single Contact Form 7 form from its edit screen.

== Upgrade Notice ==

= 1.0.0 =

Initial public release.

== Changelog ==

= 1.0.0 =

* Initial release.
* Export individual Contact Form 7 forms as JSON.
* Bulk export all forms to a ZIP archive.
* Import Contact Form 7 forms from JSON files.
* Import Contact Form 7 forms from ZIP archives.
* Automatic detection of existing forms.
* Skip identical forms during import.
* Update existing forms when changes are detected.
* ZIP import summary with imported, updated, skipped, and failed counts.
* Preserves form templates, mail settings, messages, and additional settings.
