=== FlowOnboarding ===
Contributors:      gnkapps
Tags:              quiz, funnel, onboarding, paywall, subscription
Requires at least: 6.0
Tested up to:      7.0
Requires PHP:      7.4
Stable tag:        1.11.0
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Build multi-step onboarding quiz funnels with a built-in paywall screen that turn visitors into paying subscribers.

== Description ==

FlowOnboarding lets you build multi-step onboarding quiz funnels with a built-in paywall screen — the proven "answer a few questions, get a personalised plan, choose a subscription" pattern popular with modern health, education, and SaaS apps.

A visitor answers a series of personalised questions, sees a "your plan is ready" result screen, and is presented with your subscription plans — all in one smooth, mobile-first flow embedded on any page or post with a shortcode or block.

= Features =

* Unlimited funnels — create and run as many as you like
* Visual funnel builder with a live preview and drag-and-drop step reordering
* Question types: Single Choice, Yes/No, Star Rating, and Info Screen
* Progress bar and step dots to encourage completion
* Personalised result copy with `{{answer:key}}` tokens
* Paywall screen with pricing plans and a redirect to any URL (your checkout, sales page, anywhere)
* Shortcode `[flowonboarding id="123"]` and a native Gutenberg block
* Built-in analytics: starts, completions, conversion rate, estimated revenue, daily chart, and step-by-step drop-off
* Fullscreen takeover mode or inline embed; light and dark themes; fully responsive
* GDPR-friendly: visitor IPs are stored as SHA-256 hashes, and you can optionally delete all plugin data on uninstall

= FlowOnboarding Pro =

A separate Pro plugin with additional features (more question types, conditional logic, lead capture, A/B testing, webhooks, and payment/membership integrations) is developed and distributed independently at [flowonboarding.com](https://flowonboarding.com/). It is not required — this plugin is complete and fully functional on its own.

== Installation ==

1. In your WordPress admin, go to **Plugins → Add New → Upload Plugin** and upload the plugin ZIP, or install **FlowOnboarding** from the Plugins directory.
2. Click **Activate**.
3. Go to **FlowOnboarding → + New Funnel** to build your first funnel.
4. Copy the shortcode `[flowonboarding id="X"]` (or add the FlowOnboarding block) to any page or post.

== Frequently Asked Questions ==

= Does it work with any theme? =
Yes. Funnels render through a shortcode or block and work with any standard theme.

= Can I use it without any paid service? =
Yes. The paywall's Redirect action points at any URL you choose (your checkout, a sales page, anywhere). No account, service, or other plugin is required.

= Does the plugin send any data to external services? =
No. The free plugin makes no requests to external services. Quiz answers, sessions, and analytics are stored only in your own WordPress database.

= Which PHP version is required? =
PHP 7.4 or higher. PHP 8.x is fully supported.

= Is visitor data stored, and is it GDPR-friendly? =
Quiz answers and sessions are stored in your own WordPress database. Visitor IP addresses are SHA-256 hashed by default, and you can choose to delete all plugin data on uninstall in the settings.

== Screenshots ==

1. The funnel builder — step list, live preview, and step settings side by side.
2. The paywall editor — headline, pricing plans, redirect URL, and a live preview of the offer your visitors see.
3. Analytics — starts, completions, conversion rate, daily chart, and step-by-step drop-off.
4. A finished funnel as a visitor sees it.

== Changelog ==

= 1.11.0 =
* All features are now free and unrestricted: unlimited funnels, personalised result tokens, estimated revenue in Analytics.
* Removed: license/upgrade screens, locked ("Pro") interface elements, the bundled Freemius SDK, the template gallery, the custom CSS option, and the front-end "Powered by" badge. The plugin makes no external requests.
* Internal rename: all functions, classes, options, tables, script handles, and AJAX actions now use the `flowon_` / `FLOWON_` prefix; the shortcode is now `[flowonboarding id="123"]`.
* Inline styles moved to `wp_add_inline_style()`; per-funnel colours are attached to the enqueued stylesheet.
* Fix: step answers are now stored with their real step IDs (a type mismatch could previously overwrite earlier answers in a session).
* New: conversions are recorded when a visitor clicks the paywall CTA, so Analytics conversion stats work end-to-end.
* New: "Delete all data on uninstall" setting is now honoured by a proper `uninstall.php`.

= 1.10.x =
* Builder, paywall, redirect, and rendering fixes; fullscreen takeover mode; live preview improvements. See earlier tags for details.

= 1.9.x and earlier =
* Initial development: funnel builder, paywall screen, analytics, shortcode and block embeds.

== Upgrade Notice ==

= 1.11.0 =
Major cleanup: every feature is free and unrestricted, internal prefixes changed, and the shortcode is now [flowonboarding id="123"] (update any pages using the old [onboardflow] shortcode).
