
0 votes, 0 avg.rating

Plugear Conditional Recommendation Flow (formerly Multi Questions Simulator) builds the kind of quiz or diagnosis that ends with advice: “Which plan suits you?”, “Which product should you choose?”. Visitors answer one question at a time and then see the results that fit their answers. You write the questions and their choices, and you write each result as a normal post in the block editor. Then you tell each result which answers it is for, and place the quiz on any page with a block or a shortcode. Results are chosen by conditions, not by scores There are no points to balance. For each result you tick, question by question, the choices it is meant for. A result is shown when, for every question with ticks, the visitor picked one of the ticked choices. Questions without ticks do not matter for that result. Every matching result is shown, in the order you set. One visitor can get a recommendation, a coupon and a contact form at once, each written as its own result. Results are posts, so they can hold text, images, buttons, embeds and shortcodes, including Contact Form 7 forms. Blocks and shortcodes that need their own JavaScript work only if that script is already loaded on the page (Contact Form 7 forms are set up by the plugin). Features No limit on question sets, results or choices (up to 100 questions per set). Reorder the questions of a set by drag and drop. Design per question set: color presets, individual colors, border, shadow and an icon next to the title. The headings and button texts of the quiz can be changed per set. A progress bar and a Back button. Pages using this set lists the posts and pages that embed a question set. Duplicate a question set, a question or a result with one click. A Result views count on the question set’s edit screen. Placing a quiz Insert the Recommendation Flow block and choose a published question set, or use the shortcode with the question set’s ID: [plg_mqs_simulator id="123"] The optional class attribute adds a CSS class. The question set list shows each set’s shortcode with a Copy button. Shortcodes and blocks placed with version 1.0 are still displayed (see “Upgrading from 1.0” in the FAQ). Contact Form 7 inside results A Contact Form 7 form placed in a result is displayed and sent within the results. Contact Form 7 6.1 or later is supported (tested with 6.1.7 and 6.2.5). If the form uses Cloudflare Turnstile, the plugin draws the widget again with the Turnstile script that Contact Form 7 already loaded; this plugin itself does not contact Cloudflare. Contact Form 7 is optional. Privacy The plugin makes no requests to outside services and sets no cookies. It does not store answers or anything about visitors. The only thing it records is the Result views count: a number saved with each question set (post meta _plg_mqs_result_views) that goes up by one each time its results are shown. For developers Action plg_mqs_results_shown: fires once right before results are returned, also when nothing matched, with the question set ID, the answers, the IDs of the results shown and a context array. Filters: plg_mqs_force_enqueue_assets, plg_mqs_result_item_content_classes, shortcode_atts_plg_mqs_simulator, plg_mqs_template_path and plg_mqs_locate_template. Bubbling DOM events such as mqs:start, mqs:answer and mqs:afterResults. The quiz object is window.PlgMqsSimulator. To change the markup, copy a file from templates/shortcode/ to plg-mqs/shortcode/ in your theme. Arguments, all events and examples: Hooks and events. Translations and credits The plugin’s texts are in English. Translations come as language packs from translate.wordpress.org; until your language is complete, the admin screens are in English. Five title icons (arrow, check, circle, info, question mark) are from Feather (MIT License) and the stethoscope icon is from Lucide (ISC License). See the LICENSE file.