=== Modern Hotel Booking — Direct Booking Engine & Availability Calendar ===
Contributors: leslierad
Donate link: https://startmysuccess.com/
Tags: hotel booking, vacation rental, Booking Engine, bed and breakfast, accommodation
Requires at least: 6.6
Tested up to: 7.1
Stable tag: 2.4.9.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hotel booking plugin for WordPress — direct bookings, availability calendar, AI Concierge & iCal sync for vacation rentals B&Bs & guesthouses.

== Description ==

**Modern Hotel Booking** is a hotel booking plugin for WordPress that lets vacation rental owners, B&B hosts, guesthouse managers and boutique hoteliers accept direct bookings on their own website — with zero OTA commission fees.

Built as a complete direct booking engine with a real-time availability calendar, AI-powered guest concierge and full page builder support, it replaces the need for costly OTA platforms like Airbnb or Booking.com.

= 💰 Direct Bookings — Keep 100% of Your Revenue =

* **Per-Night Booking Engine** — Optimized for hotels, guesthouses, bed and breakfasts and vacation rentals
* **Color-Coded Availability Calendar** — Real-time room availability as a Gutenberg block, shortcode or Elementor widget
* **Zero Commission** — Accept direct room reservations on your WordPress site without paying 15–25% OTA fees
* **Manual & Automated Availability** — Free manual date blocking + Pro automated 2-way iCal sync with Airbnb, VRBO & Google Calendar

= 🤖 AI Concierge — 24/7 Virtual Receptionist =

The first hotel booking plugin with a built-in AI Concierge. Your 24/7 virtual front desk answers guest inquiries about room availability, amenities, pricing, check-in policies and house rules — then guides guests through booking. Connect your own free Google Gemini or OpenAI API key with zero ongoing fees.

= 📋 Free Core Features =

**Property & Room Management**

* Unlimited room types and room units with base per-night pricing and guest capacity
* Flexible min/max night stay rules, globally or per room
* Manual date blocking and offline guest booking creation
* Same-day turnover logic for check-in and check-out management

**Page Builder & Theme Compatibility**

* 8 native Gutenberg blocks — Booking Form, Room Calendar, Room Grid, Company Profile, WhatsApp Chat, Bank Transfer, Revolut Pay, AI Concierge
* Full shortcode support — [mhbo_booking_form], [mhbo_room_calendar], [mhbo_room_grid], [mhbo_company_profile]
* 3 optional Elementor widgets with visual controls and live editor preview
* Works with any WordPress theme — Block themes, Classic editor, Divi, Beaver Builder, and more

**Guest Communication & Payments**

* AI Concierge chatbot with 13 native WP 7.0 Abilities in 15+ languages
* Custom HTML email templates for booking confirmation notifications
* Offline payments — Pay on Arrival, Bank Transfer, Revolut Pay link/QR, WhatsApp inquiry

**Privacy & Performance**

* Zero-trace architecture — all data stored locally in your WordPress database, no external tracking
* Multilingual — WPML 4.x/5.x, Polylang, Bogo and qTranslate-X compatible with 15 localized languages
* High-concurrency MySQL locking (GET_LOCK) to prevent double-booking

= 🏆 Pro Features =

**Online Payments & Channel Management**

* Stripe (Credit Cards, Apple Pay, Google Pay, 3D Secure), PayPal and Braintree (3DS2) payment gateways
* Automated 2-way iCal sync — Airbnb, VRBO, Szallas.hu, Travelminit, Google Calendar and any iCal feed
* Deposit payments — percentage or fixed amount at checkout

**Dynamic Pricing & Promotions**

* Seasonal rates for date ranges, holidays, and peak seasons
* Weekend price multipliers for Friday and Saturday
* Extra guest and child tier pricing
* Coupon and promo code engine integrated with AI Concierge
* Visual calendar editor for bulk rate and stay rule management

**Analytics, Invoicing & Compliance**

* Business intelligence dashboard — ADR, RevPAR, Occupancy Rate and revenue charts
* Professional HTML and PDF invoicing with VAT inclusive/exclusive tax breakdowns
* GDPR compliance suite with consent checkboxes and automated PII erasure
* Zero-trust AI identity verification with 6-digit OTP email for returning guests

[Official Documentation](https://modernhotelwp.com/) | [Pro Features & Licensing](https://startmysuccess.com/modern-hotel-booking-wordpress-plugin/) | [Privacy Policy](https://startmysuccess.com/privacy-policy/) | [GitHub](https://github.com/leslieradue-web/modern-hotel-booking-free)

= 🏡 Who Is This For? =

* **Guesthouses** — per-night booking logic, WhatsApp inquiry and professional invoicing
* **Bed & Breakfasts** — min/max stay rules, email automation, AI Concierge guest support
* **Vacation Rentals** — standalone property management with zero OTA commission dependency
* **Cabins & Cottages** — seasonal pricing, deposit payments and iCal sync
* **Boutique Hotels** — multi-room availability engine with real-time booking calendar

== Installation ==

1. Go to **Plugins > Add New** in your WordPress admin.
2. Search for **"Modern Hotel Booking"**.
3. Click **Install Now** and then **Activate**.

== Quick Start in 5 Steps ==

1. **Hotel Booking > Room Types** — Create your room or unit categories with base price and capacity
2. **Hotel Booking > Rooms** — Add individual rooms or units and assign each to a Room Type
3. **Hotel Booking > Settings > General** — Select your Booking Page from the dropdown
4. **Edit any page** — Add the Hotel: Booking Form Gutenberg block, shortcode [mhbo_booking_form] or optional Elementor widget
5. **(Optional) Hotel Booking > Settings > AI** — Paste your free Google Gemini API key to activate your AI Concierge instantly

== Frequently Asked Questions ==

= Is this hotel booking plugin completely free? =
Yes. The core plugin — including unlimited room types and units, real-time availability calendar, AJAX booking form, AI Concierge virtual receptionist, 8 Gutenberg blocks, shortcodes, 4 optional Elementor widgets, email notifications and manual date blocking — is 100% free with no booking limits or hidden transaction fees.

= Does it work with any WordPress theme? =
Modern Hotel Booking works with any WordPress theme. It includes 8 native Gutenberg blocks and full shortcode support for Block themes, Classic editor, Divi, Beaver Builder, and any page builder. For Elementor users, 4 dedicated widgets are included.

= Can I accept direct bookings without Airbnb or Booking.com? =
Yes. Modern Hotel Booking is a direct booking engine designed so guests book on your WordPress site and you keep 100% of the revenue with zero OTA commission fees. The Pro version adds optional two-way iCal sync to keep your OTA calendars synchronized.

= How does the iCal sync work for Airbnb and VRBO? =
The free version supports manual date blocking to prevent double bookings. Modern Hotel Booking Pro adds automated two-way background iCal synchronization for Airbnb, VRBO, Szallas.hu, Travelminit, Google Calendar and any platform that supports iCal feeds.

= Which payment gateways are supported? =
The free version supports Pay on Arrival, Direct Bank Transfer, Revolut Pay links and QR codes, and WhatsApp booking inquiries. The Pro version adds Stripe (Credit Cards, Apple Pay, Google Pay, 3D Secure), PayPal, and Braintree (3DS2) for automated online checkout.

= How does the AI Concierge virtual receptionist work? =
The AI Concierge acts as a 24/7 automated receptionist on your website. It uses your property data — room rates, check-in policies, amenities, house rules — to answer guest questions instantly in 15+ languages and guide guests through booking a room. You connect your own free Google Gemini or OpenAI API key with zero ongoing subscription costs.

= Is this a good hotel booking plugin for bed and breakfasts? =
Yes. Modern Hotel Booking is purpose-built for small independent properties including bed and breakfasts, guesthouses, vacation rentals, cabins, and boutique hotels. It provides per-night booking logic, min/max stay rules, and a professional reservation system without OTA dependency.

= Is guest data kept private and GDPR compliant? =
Yes. Modern Hotel Booking uses a zero-trace architecture. All property data and guest reservations are stored locally in your WordPress database. No tracking scripts or guest data are sent to external servers. The Pro version includes a full GDPR compliance suite with consent checkboxes and automated PII erasure tools.

= Where do I get the Pro version and documentation? =
Visit [ModernHotelWP.com](https://modernhotelwp.com/) for official documentation and guides, and [StartMySuccess.com](https://startmysuccess.com/modern-hotel-booking-wordpress-plugin/) for Pro licensing, plans and priority support.

= Does this plugin support seasonal pricing and coupons? =
Yes. Modern Hotel Booking Pro includes seasonal rates for any date range, weekend price multipliers, extra guest and child tier pricing, and a coupon and promo code engine. All pricing features are managed through a visual calendar editor.

== Screenshots ==

1. **Hotel Booking Form** — Responsive direct booking form with real-time availability checking and live per-night price calculation on any WordPress theme.
2. **Booking Management Dashboard** — Complete reservation overview with upcoming bookings, revenue tracking, and guest management for vacation rental owners.
3. **Room & Property Configuration** — Set up unlimited room types with per-night pricing, guest capacity, photos, amenities, and availability rules for your hotel or B&B.
4. **Real-Time Availability Calendar** — Color-coded interactive booking calendar showing live room availability, reservations, and blocked dates at a glance.
5. **Plugin Settings & AI Concierge Setup** — Configure email notifications, currency, booking rules, payment options, and connect your free AI Concierge API key.

== Changelog ==

= 2.4.9.6 =
* FIX (Free & Pro): Free Build Stability — Isolated pro payment gateway dependencies and added runtime class_exists guards in AiSettings and Loader to eliminate fatal errors on standalone free installs.
* FIX (Free & Pro): WordPress Security & Coding Standards (2026 BP) — Unslashed and sanitized all superglobal inputs ($_SERVER, $_COOKIE) with strict IP/token filters in PaymentsController.
* FIX (Free & Pro): Direct Database Query Hardening — Replaced interpolated table variable patterns with direct {$wpdb->prefix} references to satisfy WordPress VIP and Plugin Check (PCP) security sniffers.
* FIX (Pro): iCal Stream Refactoring — Replaced direct fopen/fclose filesystem operations in ICalSync with native wp_safe_remote_get() and memory-efficient line generator.
* MOD (Free & Pro): Build Exclusions — Excluded internal development and research markdown files from release distributions while preserving USER_GUIDE.md in Pro.

= 2.4.9.5 =
* NEW (Free & Pro): WP 7.1 Abilities API Hooks — `wp_ability_invoked` audit telemetry, `wp_ability_validate_input` deep date/email validation, `wp_ability_validate_output` response integrity checks.
* NEW (Free & Pro): JSON Schema Client Preparation — AI tool schemas sanitized via `wp_prepare_json_schema_for_client()` for Draft-4 strict compliance with Anthropic/Gemini.
* MOD (Free & Pro): Token-Efficient User Context — Uses WP 7.1 `fields` projection on `core/get-user-info` ability to minimize token waste.
* MOD (Free & Pro): verify-standards.php expanded with jQuery UI 1.14.2, persistent toolbar, and client-side media processing audit rules.
* MOD (Free & Pro): WordPress 7.1 RC3 Final Compliance — Full audit against iframed editor, persistent toolbar, 40px form controls, and jQuery UI 1.14.2.

= 2.4.9 =
* FIX (Pro): Enhanced LMFWC License System — Idempotent token-based deactivation, silent token recovery, and soft-invalid retry logic to prevent spurious deactivations on live sites.
* MOD (Free & Pro): AI Model Landscape Refresh — Added Gemini 3.7 Flash as recommended default, updated fallback cascade and provider labels.
* MOD (Free & Pro): WordPress 7.1 Compatibility Confirmed — Audited against iframed editor, abilities API improvements, and PHP 8.4 nullable types.

= 2.4.8.1 =
* NEW (Pro): RAG 2.0 Enhanced Knowledge Base — Structured room feature indexing, seasonal policy documents, local attraction recommendations, and Google Hotel Feeds XML generation.
* NEW (Free & Pro): Smart Context Windowing — Query-aware context injection with UTF-8 multi-locale tokenization.
* NEW (Free & Pro): Smart llms.txt Parsing — Enhanced AI visibility discovery without duplicate H1/Blockquote headers.

= 2.4.8 =
* MOD (Free & Pro): Updated bundled FullCalendar library to v7.0.2.

For the full changelog of all versions, see [changelog.txt](https://plugins.svn.wordpress.org/modern-hotel-booking/trunk/changelog.txt).

== Upgrade Notice ==

= 2.4.9.6 =
Free build stability hardening, 2026 BP superglobal sanitization/unslashing, and database query security compliance.

= 2.4.9.5 =
WordPress 7.1 deep compatibility: Abilities API audit/validation hooks, JSON Schema sanitization for AI providers, and token-efficient user context.

= 2.4.9 =
Updated Booking admin page, new option to fill gaps when gaps exist in min days booking (Pro), css tidy up, improved AI and updated models in use.

== Credits ==

Open-source libraries bundled locally — no external CDN requests:

* FullCalendar v7.0.2 — MIT License — [fullcalendar.io](https://fullcalendar.io)
* Chart.js v4.5.1 — MIT License — [chartjs.org](https://www.chartjs.org)
* Flatpickr v4.6.13 — MIT License — [flatpickr.js.org](https://flatpickr.js.org)

== Privacy Policy ==

Modern Hotel Booking does not collect or transmit guest or admin data to our servers. All booking data is stored locally in your WordPress database.

**AI Concierge:** When enabled, guest messages and property context are sent to your configured AI provider (Google Gemini or OpenAI) to generate responses. Conversation context is stored as WordPress Transients for up to 2 hours then automatically deleted. No PII is permanently stored by this plugin.

**Rate Limiting:** Anonymised per-IP request counts are stored as Transients (2-minute TTL) to prevent abuse. No IP addresses are permanently saved.

See our full [Privacy Policy](https://startmysuccess.com/privacy-policy/).

== External Services ==

All connections are optional and only active when configured by the administrator:

* **WhatsApp** — Communication links only. [Privacy Policy](https://www.whatsapp.com/legal/privacy-policy)
* **Revolut** — Payment links and QR codes. [Privacy Policy](https://www.revolut.com/legal/privacy)
* **Google Gemini / OpenAI** — AI Concierge responses during active chat only. [Google Privacy](https://policies.google.com/privacy) | [OpenAI Privacy](https://openai.com/privacy/)

**Pro version only:**

* **Stripe** — Card, Apple Pay, Google Pay processing. [Privacy Policy](https://stripe.com/privacy)
* **PayPal** — Account payment processing. [Privacy Policy](https://www.paypal.com/webapps/mpp/ua/privacy-full)
* **Braintree** — Credit Card & Debit Card processing. [Privacy Policy](https://www.braintreepayments.com/legal/braintree-privacy-policy)
* **iCal Sync** — Reads public calendar feeds. No data sent to our servers.
* **StartMySuccess** — License verification and Pro updates. [Privacy Policy](https://startmysuccess.com/privacy-policy/)