=== Form Redirection For Contact Form 7 ===
Contributors: sach27298
Tags: contact form 7, redirect, redirection, form redirect, thank you page
Requires at least: 5.5
Tested up to: 6.8
Requires PHP: 7.2
Tested with PHP: 8.2.12
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a redirection tab to all Contact Form 7 forms, allowing users to set a thank you page URL, delay in seconds, and enable/disable redirection.

== Description ==

**Form Redirection For Contact Form 7** enhances Contact Form 7 by allowing users to redirect to a custom page or URL after form submission.  
It's lightweight, secure, and easy to configure from the form editor itself.

**Features:**

- Adds a new **Redirection** tab to Contact Form 7 forms
- Choose a page from your site or enter a custom URL
- Set a delay (in seconds) before redirecting
- Enable/disable redirection with a simple toggle
- Works with AJAX-enabled CF7 forms
- No dependencies, no bloated UI, fully native

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via WordPress Dashboard → Plugins → Add New.
2. Activate the plugin through the “Plugins” menu in WordPress.
3. Go to any Contact Form 7 form → click the new **Redirection** tab.
4. Set the redirection settings, save the form, and you're done!

== Frequently Asked Questions ==

= Does this plugin work with AJAX forms? =
Yes. The plugin listens for the `wpcf7mailsent` JavaScript event and performs redirection accordingly.

= What if both a page and a custom URL are set? =
The plugin will prioritize the **custom URL** if it is filled.

= Will this plugin slow down my site? =
No. It only loads code inside the CF7 admin interface and injects a small script per form on the front-end only if CF7 is active.

= Is Contact Form 7 required? =
Yes. This plugin will not activate unless Contact Form 7 is active.

== Screenshots ==

1. The Redirection tab in Contact Form 7 editor 

== License ==

This plugin is licensed under the GPLv2 or later.

== Changelog ==

= 1.0.0 =
* Initial release  
* Adds support for redirection settings in Contact Form 7  
* Secure AJAX endpoint with nonce  
* Works with all CF7 forms  
* Tested with WordPress 6.8.2 and PHP 8.2.12.

= 1.0.1 =
* updated whole plugin slug 
* fixed slug related bugs

= 1.0.2 =
* Added dependency header for Contact Form 7
* Updated contributors
* Removed wp.org directory assets from plugin ZIP