=== Login Terms Acceptance ===
Contributors: xtnd2030
Tags: terms and conditions, login, user roles, access control, compliance
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.2.4
License:     GPLv2 or later
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Restrict access for selected user roles unless they accept the Terms and Conditions. Ensure users accept your terms before accessing the site.

== Description ==

**Compatible with WordPress 6.7+ and PHP 8.3**

Restrict access for selected user roles unless they accept the Terms and Conditions. This plugin ensures users acknowledge and accept your terms before they can fully access the site.

= Features =
* Redirect users to the Terms and Conditions page upon login.
* Restrict access for selected user roles until the terms are accepted.
* Customizable Terms and Conditions content.
* Track which users have accepted the terms.
* New: Option to send a confirmation email after accepting the terms.

Here is the basic setup->

[vimeo https://vimeo.com/1025425118]

= Languages =
This plugin is available in the following languages:
* English
* German (Deutsch)
* Italian (Italiano)
* Spanish (Español)
* Arabic (العربية)

== 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. Navigate to 'Login Terms Acceptance' in your menu to configure the plugin settings.

== Frequently Asked Questions ==

= How do I set up the plugin? =
After activating the plugin, go to 'Settings' > 'Login Terms Acceptance' to configure which user roles are required to accept the Terms and Conditions and to customize the terms content.

= Can I customize the Terms and Conditions? =
Yes, you can customize the Terms and Conditions content from the plugin settings page.

= What happens if a user does not accept the terms? =
Users will be redirected to the Terms and Conditions page upon login and will not have full access to the site until they accept the terms, or they have to log out again.

= Is there an option to send a confirmation email? =
Yes, you can enable the option to send a confirmation email after the user accepts the terms in the plugin settings.

== Screenshots ==

1. Settings page to configure the plugin.
   ![Settings page](assets/screenshots/screenshot-1.png)
2. Example Terms and Conditions acceptance page.
   ![Terms and Conditions page](assets/screenshots/screenshot-2.png)
3. Users list showing who has accepted the terms.
   ![Users list](assets/screenshots/screenshot-3.png)

== Changelog ==

= 1.2.4 =
* Introduced a dismissible rating banner in the admin plugins page to encourage user feedback.

= 1.2.3 =
* Added an extra validation layer before creating the Login Terms Acceptance page to avoid duplicate page creation.

= 1.2.2 =
* Added filter `xlta_acceptance_redirect_url` to allow customizing the redirect destination after terms acceptance.

= 1.2.1 =
* Added option to select a redirection page after terms are accepted.
* Redirects users to the selected page after accepting terms.

= 1.2.0 =
* Confirmed compatibility with WordPress 6.8.1 and PHP 8.3
* Added translations for German, Italian, Spanish, and Arabic

= 1.1.1 =
* WordPress Compatibility 6.7.1

= 1.1.0 =
* Added option to send a confirmation email after accepting the terms.
* Improved text area for customizing Terms and Conditions using the WordPress editor.
* Enhanced the mail sending functionality based on user settings.

= 1.0.0 =
* Initial release of Login Terms Acceptance.

== Upgrade Notice ==

= 1.2.4 =
This update introduces a dismissible rating banner in the plugins page for admin users.

= 1.2.3 =
Prevents duplicate "Login Terms Acceptance" pages from being created.

= 1.2.2 =
Adds a new filter to customize the redirect URL after terms acceptance.

= 1.2.1  =
Added: Option to redirect users to a selected page after accepting the Terms and Conditions.
Improved: Admin settings page now includes a field for selecting the redirection page.

= 1.2.0  =
Updated with multilingual support and PHP 8.3 / WordPress 6.8.1 compatibility.

= 1.1.1 =
WordPress Compatibility 6.7.1

= 1.1.0 =
New features and improvements available. Update for better functionality.

= 1.0.0 =
Initial release. No upgrades available yet.

== License ==

This plugin is licensed under the GPLv2 or later. See the LICENSE file for more information.
