=== PlayQuizNow === Contributors: playquiznow, varun-gulati Tags: quiz, embed, interactive, assessment, education Requires at least: 5.8 Tested up to: 6.9 Stable tag: 1.0.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Embed interactive quizzes from PlayQuizNow into your WordPress site with a shortcode or Gutenberg block. == Description == PlayQuizNow lets you create beautiful, interactive quizzes and embed them anywhere on your WordPress site. Use the `[playquiznow]` shortcode or the Gutenberg block to add quizzes to posts, pages, and widget areas. **Features:** * Shortcode and Gutenberg block support * Auto-resize via postMessage — no scrollbars * Light and dark theme support * Lazy loading for better page performance * Google Analytics event tracking on quiz completion * Configurable default settings == Installation == 1. Upload the `playquiznow` folder to `/wp-content/plugins/`. 2. Activate the plugin through the Plugins menu. 3. Go to Settings → PlayQuizNow to configure defaults. 4. Add quizzes using the shortcode or Gutenberg block. == Frequently Asked Questions == = How do I find my quiz ID? = Log in to your PlayQuizNow dashboard at [playquiznow.com](https://playquiznow.com). Each quiz has a unique ID shown on its settings page. = Can I embed multiple quizzes on one page? = Yes. Each shortcode or block operates independently. = Does the quiz auto-resize? = Yes. The embedded quiz communicates its height via postMessage and the iframe adjusts automatically. = Can I track quiz completions in Google Analytics? = Yes. If Google Analytics (gtag.js) is loaded on your site, a `quiz_complete` event is fired automatically when a user finishes a quiz. == External services == This plugin embeds interactive quizzes by loading content from the PlayQuizNow platform in an iframe. When a page containing an embedded quiz is viewed, the visitor's browser makes a request to playquiznow.com. This sends: * The quiz ID (to load the correct quiz) * Theme preference (light or dark) * Source identifier (wordpress) * Standard browser information (IP address, user agent, referring page) as part of the HTTP request This data is sent every time a page with an embedded quiz is loaded by a visitor. This service is provided by PlayQuizNow: * Service: [https://playquiznow.com](https://playquiznow.com) * Terms of Service: [https://playquiznow.com/terms-of-service](https://playquiznow.com/terms-of-service) * Privacy Policy: [https://playquiznow.com/privacy-policy](https://playquiznow.com/privacy-policy) == Changelog == = 1.0.6 = * Added external services disclosure to readme.txt = 1.0.5 = * Added varun-gulati as contributor * Removed branding feature for Guideline 10 compliance * Fixed missing PLAYQUIZNOW_PLUGIN_DIR constant * Fixed malformed plugin header = 1.0.4 = * Fixed iframe auto-resize event handling for improved widget stability * Improved frontend.js event type consistency and compatibility * Updated event names to align with PostMessage API standards * Enhanced widget performance and reliability on all browsers = 1.0.1 = * Fixed iframe auto-resize not working (postMessage event type mismatch). * Removed deprecated load_plugin_textdomain() call. * Updated "Tested up to" to WordPress 6.9. = 1.0.0 = * Initial release. * Shortcode support: `[playquiznow id="your-quiz-id"]`. * Gutenberg block with live preview and sidebar settings. * Auto-resize via postMessage. * Admin settings page with defaults. * Google Analytics quiz completion tracking. * Light and dark theme support. * Lazy loading option.