=== P4G Waiting List Embed ===
Contributors: play4gain
Tags: waiting list, waitlist, form, embed, lead generation
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed a Play4Gain hosted waiting-list form on your WordPress site with a shortcode or block — no HTML editing required.

== Description ==

If you've created a waiting-list form at waiting-lists.play4gain.com, this plugin lets you drop it into any WordPress page or post without hand-editing HTML.

Two ways to add it:

* **Block** — search for "Waiting List Form" in the block inserter, then paste your form key into the block settings sidebar.
* **Shortcode** — `[p4g_waitlist key="your-form-key" height="700"]`

Find your form key on your Play4Gain dashboard, in the "Share your form" box on each live form — it's the value after `key_id=` in that link.

To match your form's colors and fonts to your site, use the "Edit style" link on your dashboard (not this plugin) — the form loads in its own embedded frame, so your theme's stylesheet can't reach into it directly.

== Installation ==

1. Upload the `p4g-waitlist-embed` folder to `/wp-content/plugins/`, or install the zip via Plugins → Add New → Upload Plugin.
2. Activate the plugin.
3. Add the "Waiting List Form" block to a page, or use the `[p4g_waitlist key="..."]` shortcode.

== Frequently Asked Questions ==

= Where do I find my form key? =

On your Play4Gain dashboard, each live form has a "Share your form" box — the key is the `key_id` value in that link.

= Can I change the height? =

Yes — set "Height (px)" in the block sidebar, or pass `height="900"` to the shortcode. Default is 700px.

= Why doesn't the form pick up my theme's fonts and colors automatically? =

The form renders in an embedded frame from insights.play4gain.com, so it's a separate document from your page — your theme's CSS can't reach into it. Use the "Edit style" custom CSS field on your Play4Gain dashboard to match your branding there instead.

== Changelog ==

= 1.0.0 =
* Initial release: shortcode and block embed of hosted waiting-list forms.
