=== MyBookSlot ===
Contributors: mybookslot
Tags: booking, calendar, appointments, embed, scheduling
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.1
License: MIT
License URI: https://opensource.org/licenses/MIT

Embed MyBookSlot booking pages with a shortcode or Gutenberg block.

== Description ==

MyBookSlot lets visitors book time with you. This plugin embeds your booking page on any WordPress post or page.

= Features =

* Shortcode `[mybookslot]` (alias `[mbs]`)
* Gutenberg block “MyBookSlot Embed”
* Settings page for default booking path and layout
* Layouts: inline, floating button, element-click
* Loads `https://mybookslot.com/embed/embed.js` (override via filter/constant for staging)

= Shortcode examples =

`[mybookslot link="alex" type="inline"]`

`[mbs link="alex/30min" type="floating" text="Book a call"]`

= Staging override =

Define `MYBOOKSLOT_EMBED_JS_URL` in `wp-config.php`, or use the `mybookslot_embed_js_url` filter.

== Installation ==

1. Upload the `mybookslot` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu
3. Go to Settings → MyBookSlot and set your default booking path
4. Add the shortcode or block to a page

== Frequently Asked Questions ==

= Where do I find my booking path? =

Sign in at [mybookslot.com](https://mybookslot.com), open your event types, and copy the path (e.g. `username/30min`).

= Can I use this on a staging site? =

Yes. Point the embed script at your staging origin with the `MYBOOKSLOT_EMBED_JS_URL` constant.

= Does MyBookSlot have an affiliate program? =

Yes. Sign in at [mybookslot.com/refer](https://mybookslot.com/refer), share your referral link, and earn 20% of Pro subscription payments for 12 months when someone you refer upgrades. Payouts are available via Revolut, PayPal, or bank transfer once your balance is over €70.

== Changelog ==

= 1.0.1 =
* Document affiliate program on the settings page and readme.

= 1.0.0 =
* Initial release: shortcode, Gutenberg block, settings page.
