=== KN Booking Suite ===
Contributors: knvinny
Tags: booking, appointments, scheduling, calendar, availability
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A fast, lightweight booking and appointment scheduling plugin for WordPress — manage requests, set availability, and send automated email notifications.

== Description ==

KN Booking Suite is a lightweight booking plugin that allows you to manage customer requests, schedule appointments, and organize your calendar with ease. It includes automated email notifications, availability rules, and a built-in customer profile page.

**Free Features:**

* Interactive calendar with availability management
* Booking request management (approve, cancel, delete)
* Automated email notifications (new request, approval, cancellation)
* Customizable booking form with dynamic fields
* Customer profile page for users to view and manage their bookings
* Configurable availability hours and blocked dates
* Color presets and calendar theming options
* CSV export of booking data
* Guest and logged-in user booking support

**Pro Add-on Features (sold separately):**

* WooCommerce payment integration
* AI-powered booking analysis (OpenAI)
* Add to Google Calendar button
* Additional premium features

== Installation ==

From your WordPress dashboard:

1. Visit **Plugins > Add New**
2. Search for "KN Booking Suite"
3. Install and activate the plugin
4. Click on the new **KN Booking** menu item and configure your booking settings
5. Add the `[kn_booking]` shortcode to any page to display the booking calendar

== Shortcodes ==

= [kn_booking] =
Place this shortcode on any page to display the booking calendar.

= [kn_profile] =
Place this shortcode on a page to allow logged-in users to view and manage their own bookings.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
No. KN Booking Suite works as a completely standalone booking system. WooCommerce is only required if you use the **KN Booking Suite Pro** add-on to collect payments via checkout.

= Can customers manage their own bookings? =
Yes. Use the `[kn_profile]` shortcode on any page to let logged-in users view upcoming and past bookings, and optionally edit or cancel them based on your settings.

= Is the plugin translatable? =
Yes. KN Booking Suite is fully internationalized and ready for translation using the `knvinny-booking-suite` text domain.

== Changelog ==

= 1.1.0 =
* Branding: Published as KN Booking Suite on WordPress.org.
* Prefixing: Standardized all internal options, AJAX actions, and hooks with `swiftbook_` prefix.
* CSS: Refactored all UI components to use the `swiftbook-` class naming convention.
* Refactor: Standardized backend controllers and menu callbacks.
* Pro features decoupled: Google Calendar, WooCommerce payments, and AI analysis moved to the Pro add-on.

= 1.0.1 =
* Security: Added capability checks to all admin AJAX handlers.
* Code quality: Proper output escaping throughout admin templates.
* Updated: Tested up to WordPress 6.7.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Major update with WordPress.org compliance. Google Calendar, WooCommerce payments, and AI analysis features are now available via the Pro add-on.

== External Services ==

This plugin connects to external services **only** when the optional Pro add-on is installed and the user explicitly triggers the corresponding feature:

= OpenAI API =
The **KN Booking Suite Pro** add-on optionally connects to the OpenAI API to power the AI-assisted booking analysis feature. This feature is **only triggered** when an admin explicitly clicks "Analyze" on a booking in the dashboard.

* **What data is sent:** A summary of the booking (date, time, and description/notes) is sent to the OpenAI API.
* **When:** Only when an admin manually triggers the AI analysis action.
* **Why:** To generate a contextual response or summary about the booking.

This service is provided by OpenAI, L.L.C.:
* [OpenAI Terms of Use](https://openai.com/policies/terms-of-use)
* [OpenAI Privacy Policy](https://openai.com/policies/privacy-policy)
