=== CFDB Form Notifier ===
Contributors: abhkrs
Tags: contact form 7, submissions, rest api, form database, form logger
Requires at least: 5.5
Tested up to: 6.9
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Store, manage, and retrieve Contact Form 7 submissions with a secure REST API and intuitive admin interface.

== Description ==

CFDB Form Notifier is a powerful extension for Contact Form 7 that logs all form submissions to a secure, dedicated database table. It provides a REST API to access submission data and a clean admin interface for easy management.

Key Features:

* **Secure Storage**: All form submissions are stored in a dedicated database table
* **REST API**: Access submissions programmatically with API key authentication
* **Admin Interface**: Browse and manage submissions from the WordPress dashboard
* **API Key Management**: Automatic API key generation and regeneration
* **Form Field Support**: Handles all standard form field types including text, email, select, and multi-select
* **IP Tracking**: Records the IP address of form submitters
* **Developer Friendly**: Well-documented API with clear error messages
* **Responsive Design**: Works on all devices

== Installation ==

1. Upload the `cfdb-form-notifier` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to *CFDB Form Notifier > Settings* to view your API key
4. Start receiving form submissions automatically

== Frequently Asked Questions ==

= How do I get my API key? =
Your API key is automatically generated when you activate the plugin. You can find it in *CFDB Form Notifier > Settings*.

= How do I use the API? =
Make a GET request to `/wp-json/cfdb-form-notifier/v1/submissions` with your API key in the `Authorization: Bearer YOUR_API_KEY` header, or use `?api_key=YOUR_API_KEY` URL parameter in dev mode.

= How do I retrieve specific submissions? =
Use the `response` parameter to specify a range (e.g., `?response=1,10` for the first 10 submissions).

= Is my data secure? =
Yes, all API requests require authentication with your unique API key. In Live mode, the API key must be sent in the header for added security.

= Can I export the form submissions? =
Currently, the plugin doesn't have an export feature, but you can use the REST API to retrieve and process the data as needed.

== Changelog ==

= 2.0.0 =
* **UI Overhaul**: Replaced the legacy dashboard with a modern, compact, card-based interface for better lead management.
* **Improved Navigation**: Tab-based form selection system that shows all Contact Form 7 forms by default.
* **Pro Support Ready**: Optimized codebase for seamless integration with the upcoming Pro version (lead editing, status management, and CSV exports).
* **Security & Standards**: Optimized database queries and improved object caching.
* **Bug Fixes**: Resolved minor UI wrapping and spacing issues across the admin dashboard.

= 1.0.2 =
* Improved: Enhanced API authentication with WordPress-standard Authorization Bearer header support
* Improved: Authorization header works in all modes, URL parameter only works in dev mode
* Fixed: Removed custom headers to comply with WordPress REST API standards

= 1.0.1 =
* Improved: Exclude Google reCAPTCHA responses from database storage
* Fixed: Automatic cleanup of existing reCAPTCHA data during plugin update
* Fixed: Form submission time now displays in WordPress site timezone instead of GMT

= 1.0.0 =
* Initial release
