=== Grovega Lead Sync ===
Contributors: grovega
Tags: crm, leads, contact form 7, wpforms, lead generation
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sends new Contact Form 7 and WPForms submissions straight into your Grovega pipeline as leads — no manual copy-pasting.

== Description ==

If your website collects leads through Contact Form 7 or WPForms, this plugin forwards every new submission into your Grovega account automatically, creating a Contact and a Lead in your pipeline within seconds of the visitor hitting submit.

**Features**

* Works with Contact Form 7 and WPForms out of the box — no code required.
* One API key per website, generated and revocable from Grovega's own Settings > API keys page.
* Duplicate-safe: retried or duplicate deliveries never create two leads for the same submission.
* Fails safely — if Grovega is unreachable, your visitor's form submission still completes normally; the sync failure is only logged, never shown to the visitor.

**Requirements**

A Grovega account with an API key (Settings > API keys inside your CRM).

== Installation ==

1. Upload the plugin through Plugins > Add New > Upload Plugin, or upload the unzipped `grovega-lead-sync` folder to `/wp-content/plugins/`.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. In Grovega, go to Settings > API keys and create a new key labeled for this website.
4. In WordPress, go to Settings > Grovega and paste in your API key and the endpoint URL shown in Grovega.
5. Submit a test entry through any Contact Form 7 or WPForms form on your site — it should appear in your Grovega Leads pipeline within seconds.

== Frequently Asked Questions ==

= Does this work with other form plugins? =

Not yet — only Contact Form 7 and WPForms are supported in this version.

= What happens if my API key is revoked? =

New submissions will fail to sync silently (logged to your site's PHP error log, never shown to visitors) until you update the key under Settings > Grovega.

== Changelog ==

= 1.0.0 =
* Initial release — Contact Form 7 and WPForms support.
