=== Codeandcore User Registration for CF7 ===
Contributors: codeandcore
Tags: Contact Form Registration, User Registration
 Description: A plugin to handle user registration through Contact Form 7 submissions.
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A plugin to handle user registration through Contact Form 7 submissions.

== Description ==


**Codeandcore User Registration for CF7** Plugin enhances Contact Form 7 by enabling seamless user registration with advanced features. It allows automatic login after registration, custom user role assignment, field mapping for user meta, redirection to a selected URL, and the ability to skip Contact Form 7 email notifications. This plugin simplifies the registration process, making it ideal for membership sites, community platforms, and custom WordPress applications.

== Features ==

- Seamless User Registration
- Role-Based Registration
- Email Verification
- Customizable Fields
- Auto Login After Registration
- Admin Notifications
- User Approval System
- Fields Mapping

== Setup & Configuration ==
- Create a Registration Form – Go to Contact > Add New, create a Contact Form 7 form, and add fields like Name, Email, and Password.
- Configure User Registration Settings – Navigate to the Registration Settings Tab, assign a user role, enable auto-login, set redirection, and map CF7 fields to WordPress user meta.
- Enable or Disable CF7 Email – Choose whether to send default CF7 emails upon registration.
- Save Changes – Click Save to apply your settings.
- Embed the Form – Copy the CF7 form shortcode and paste it on a page or post.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Create a Contact Form 7 form for registration.
4. Go to the Registration Settings tab, update the settings as needed, and save changes.
5. Users will now be registered automatically upon form submission.


== Frequently Asked Questions ==

= How does Codeandcore User Registration for CF7 work? =
The plugin integrates with Contact Form 7, allowing users to be registered automatically upon form submission.

= Can I assign different user roles during registration? =
Yes! In the Registration Settings tab, you can set a default role or dynamically assign roles based by Selecting the User Role.

= Does it support email verification? =
Yes, the plugin allows you to send a verification email before activating the user account.

= Can I redirect users after successful registration? =
Yes, you can select a custom redirect URL to send users to a specific page after registration.

== Changelog ==

= 2.0.0 =
* Updated version and tested up to WordPress 7.0.
* Removed UTF-8 Byte Order Mark (BOM) from the main plugin file to prevent application corruption.
* Fixed security issue by replacing wp_redirect with wp_safe_redirect.
* Added strict sanitization callbacks to plugin settings.
* Updated global function and hook naming prefixes to adhere strictly to WordPress coding standards.

= 1.1.2 =
* Removed tracking for opt-out events to enhance user privacy.

= 1.1.1 =
* Refactored to class-based architecture.
* Added deactivation feedback handler.

= 1.1 =
* Tested up to WordPress 6.8.

= 1.0.0 =
* Initial release of Codeandcore User Registration for CF7.

== Upgrade Notice ==

= 2.0.0 =
Updated version and tested up to WordPress 7.0. Fixed PHPCS warnings, resolved open-redirect security risks, added setting sanitization, and removed file BOM.

= 1.1.2 =
Removed tracking for opt-out events to enhance user privacy.

= 1.1.1 =
Refactored to class-based architecture and standardized naming conventions for better performance and maintainability.

= 1.1 =
Compatible with WordPress 6.8.

= 1.0.0 =
First release of the plugin.

== License ==

This plugin is licensed under the GPLv2 or later.

== Screenshots ==
1. Registration Settings – Go to the Registration Settings tab and update the settings as needed.