=== PoolPix Remodel AI Form Connector ===

Contributors: webmasterpoolpix
Tags: api, elementor, contact form 7, forms, poolpix, integration
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects Elementor and Contact Form 7 forms to the PoolPix API to automatically create web demo projects from form submissions.

== Description ==

Form Connector for PoolPix is a lightweight integration plugin that listens for Elementor Pro and/or Contact Form 7 submissions and forwards the submitted data — including an optional image — to the PoolPix API to create a new web demo project. Each site only needs the form plugin it actually uses; the two integrations run independently of each other.

This plugin is developed and maintained by PoolPix (https://poolpix.ai) and is not affiliated with Elementor Ltd. or Contact Form 7.

**Features:**

* Automatically sends Elementor form data to the PoolPix API on submission.
* Automatically sends Contact Form 7 data to the PoolPix API on submission.
* Supports optional image upload with automatic compression.
* Simple admin settings page to configure your PoolPix Client ID.
* No external dependencies beyond Elementor Pro and/or Contact Form 7.

== Installation ==

1. Upload the `poolpix-remodel-ai-form-connector` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **PoolPix > Settings** in the WordPress admin menu.
4. Enter your PoolPix Client ID (provided by PoolPix) and click **Save Settings**.
5. If using Elementor Pro, ensure your form has fields named: `name`, `email`, and any file upload field.
6. If using Contact Form 7, ensure your form fields are named: `first-name`, `email-34`, `tel-288`, and a file upload field named `upload-image` (an optional `text-991` address field is also supported).

== Frequently Asked Questions ==

= Where do I get my Client ID? =

Your Client ID is provided by PoolPix when you sign up for an account at https://poolpix.ai.

= Does this plugin require Elementor Pro or Contact Form 7? =

It requires at least one of them to be installed and active. It hooks into the Elementor Pro form submission event (`elementor_pro/forms/new_record`) and, independently, the Contact Form 7 mail-sent event (`wpcf7_mail_sent`). A site using only one of the two form plugins is unaffected by the other integration.

= What data is sent to PoolPix? =

The plugin sends the name, email, phone, address, and an optional compressed image from the submitted form to the PoolPix API.

== External Services ==

This plugin connects to the PoolPix API to create web demo projects from form submissions.

= PoolPix API =

* **What it does:** Receives form submission data (name, email, phone, address, image) and creates a new web demo project in the PoolPix system.
* **When data is sent:** Only when a visitor submits an Elementor Pro form or a Contact Form 7 form on your site.
* **Data sent:** First name, email address, phone number, address, Client ID, and an optionally compressed image file.
* **Service provider:** PoolPix — https://poolpix.ai
* **Terms of Service:** https://poolpix.ai/terms
* **Privacy Policy:** https://poolpix.ai/privacy

No data is sent unless a form is submitted. No data is stored by this plugin beyond the Client ID setting.

== Changelog ==

= 1.3.0 =
* Added Contact Form 7 support via the `wpcf7_mail_sent` hook, running independently of the existing Elementor Pro integration (no changes to Elementor behavior).
* Uses the same PoolPix Client ID setting and the same PoolPix API endpoint as the Elementor integration.

= 1.2.0 =
* Renamed plugin to "PoolPix Remodel AI Form Connector" with approved slug poolpix-remodel-ai-form-connector.
* Added External Services disclosure to readme.
* Added nonce verification to settings form.
* Improved input sanitization.

= 1.0.0 =
* Initial release.
