=== AppointDash ===
Contributors: appointdash
Tags: appointments, booking, calendar, scheduling, booking system
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Appointment booking plugin for WordPress with unlimited appointments, services, staff, and locations. Accept bookings and Stripe payments 24/7.

== Description ==

AppointDash is an appointment booking plugin that turns your WordPress site into a 24/7 online scheduling desk. Customers choose a service, staff member, location, and time slot in a guided booking form, then pay online or later, with no phone calls or back-and-forth emails.

**No limits**

* **Unlimited appointments** – take as many bookings as your calendar can hold.
* **Unlimited services** – offer every appointment type your business needs.
* **Unlimited staff members** – add your whole team.
* **Unlimited locations** – manage one shop or many branches from a single dashboard.

**Booking & scheduling**

* Multi-step booking form with a step-by-step wizard
* Instant booking forms for a faster path to checkout
* Booking form customization to match your site
* Custom schedules, holidays, and days off
* Time restrictions and timeslot logic to control when customers can book
* Group bookings, so several customers can take the same time slot
* Appointment cancellation and rescheduling, including customer self-reschedule
* Quick time blocking straight from the calendar

**Payments**

* Stripe for online payments
* Manual payments (Pay Later) for customers who pay in person
* Per-service deposits, so customers can pay part now and the rest later

**Notifications**

* Email notifications for customers and staff to keep everyone informed about bookings
* Editable email templates for every message the plugin sends

**Management & admin**

* Customer dashboard for clients to view their appointments
* Admin analytics dashboard to track bookings at a glance
* Activity log recording what happens in your booking system
* Agent profiles and permissions for the people who work in your dashboard
* Spam and rate-limit protection on public forms
* Conversion tracking through tracking code configuration
* Import and export functionality for your booking data

**Who is it for?**

AppointDash fits any business that takes appointments: salons and spas, dental clinics, fitness studios, consultants, tutors, photographers, event services, and more.

**Getting started**

1. Install and activate AppointDash.
2. Add your services, staff, and locations.
3. Set your schedules and connect Stripe or enable Pay Later.
4. Add the booking form to your site and start accepting appointments.

== External services ==

This plugin can connect to Stripe when you enable online payments in settings and supply your own Stripe API keys. No external service is required: the plugin is fully functional with manual (pay later) bookings, and nothing is sent anywhere until you add your own credentials and switch Stripe on.

* **Stripe** — processes online card payments and deposits on Stripe's servers. When a customer pays, the plugin sends the booking amount, the currency, and the payment metadata for that booking (including the customer email address you collect at checkout) to Stripe, and receives the payment result back. Payment card details are entered on Stripe's own hosted checkout and never reach your site. Used only while the Stripe gateway is enabled. Service provided by Stripe, Inc. — [Terms of Service](https://stripe.com/legal) · [Privacy Policy](https://stripe.com/privacy)

== Installation ==

1. Upload the `appointdash` folder to `/wp-content/plugins/`, or install the ZIP via **Plugins → Add New → Upload Plugin**.
2. Activate **AppointDash** through the Plugins screen.
3. Open **AppointDash** in the admin menu and configure staff, services, locations, and availability.
4. Add `[appointdash_booking_widget]` to a page customers will use for booking.
5. Optionally add `[appointdash_booking_portal]` for customers to manage their appointments.
6. (Optional) Under **Settings → Payments**, connect Stripe if you want online checkout or deposits.

== Frequently Asked Questions ==

= Does AppointDash require a specific theme? =

No. It is theme-independent and only loads front-end assets on pages that use its shortcodes.

= Does the plugin phone home? =

No. It contacts no servers of its own. The only outbound connection is to Stripe, and only after you enter your own API keys and enable the Stripe gateway.

= Are there any limits on appointments, staff, services, or locations? =

No. All four are unlimited, and there is no trial period, usage quota, or time limit anywhere in the plugin.

= Does it process payments? =

Yes. Manual (pay later) bookings, Stripe checkout, and per-service deposits are all included.

= Can I email customers who I add from the dashboard? =

Yes. When you add a customer in admin, you can send an account setup email so they choose a password. Subject and body are editable under **Settings → Email templates** (“Customer account setup”).

= Where is my booking data stored? =

In your own WordPress database, in tables the plugin creates on activation. Uninstalling the plugin removes them.

== Screenshots ==

1. Admin Dashboard
2. Calendar View
3. Analytics View
4. Booking Widget
5. Customer Booking Confirmation
6. Customer Booking Portal

== Changelog ==

= 2.0.0 =
* Security: customer managers can only change the email or password of, or delete, WordPress accounts that AppointDash created. Other accounts, including existing subscribers who use the customer portal, require WordPress permission to edit that user.

= 1.2.4 =
* Security: customer login uses the standard WordPress sign-in, so security, login-limit, and two-factor plugins apply.
* Security: the plugin no longer reads or writes WordPress login cookies.
* Removed booking file attachment code, which this plugin did not use.

= 1.2.3 =
* Security: signed payment links and stored credentials use the plugin's own secret key instead of WordPress authentication salts.
* Security: changing the password or email of, or deleting, a customer's linked WordPress account now requires permission to edit that account. Customer managers keep full control of regular customer accounts.
* Security: the availability lookup only frees a booking's own time slot for someone allowed to change that booking.

= 1.2.2 =
* Security: customer accounts are always created with the Subscriber role.
* Security: the payment return page verifies a signed link and only confirms pending payments, so refunded payments cannot be marked as paid again.
* Security: stricter permission, nonce, and input checks on admin forms.

= 1.2.1 =
* Security: the conversion tracking snippet can only be changed by users allowed to post unfiltered HTML.

= 1.2.0 =
* Locations, staff, and services are unlimited, with the same add flow on every screen.
* Database: every query now binds its table name and its values through `$wpdb->prepare()`.
* Fixed incorrect `wpdb::prepare()` notices, including ones raised during activation.
* Settings has been reorganized; the tabs you see now follow what is installed.
* Requires WordPress 6.2 or newer (for prepared identifier placeholders).

= 1.1.2 =
* Settings: Widget appearance moved to a new Widget tab. General keeps Business, Spam & security, Booking widget, and Conversion tracking.

= 1.1.0 =
* Settings lists the booking shortcode as `[appointdash_booking_widget]`, matching the documented tag. Existing `[booking_widget]` pages keep working.

= 1.0.66 =
* Booking widget no longer errors on activation or deactivation.

= 1.0.65 =
* Prefixed shortcodes, documented external services, and enqueue/upload/text-domain fixes.
* Customizable side menu text, brand text, and icon colors.

= 1.0.64 =
* Editable “Customer account setup” email template for customers added from the dashboard.
* Service deposits available with Stripe.
* App shell menu order: Customers after Staff, Locations after Services.

= 1.0.60 =
* Forms, roles, security, and intelligence improvements.
* Agent and login redirect fixes, plus role-name corrections.

= 1.0.54 =
* Group bookings.
* Payment status and checkout description improvements.
* Stripe error handling fixes.

= 1.0.47 =
* Add photo upload for services, shown to customers on the booking widget.

= 1.0.0 =
* Initial release: schema, capabilities, admin shell, booking workflows, and customer portal.

== Upgrade Notice ==

= 2.0.0 =
Security hardening for customer account changes.

= 1.2.4 =
Security hardening for customer login.

= 1.2.3 =
Security hardening for payment links, customer account changes, and availability lookups.

= 1.2.2 =
Security hardening for customer registration, payment confirmation, and admin forms.

= 1.2.1 =
Security hardening for the conversion tracking setting.

= 1.2.0 =
Unlimited locations, staff, and services, and hardened database queries. Now requires WordPress 6.2 or newer.
