Linux 软件免费装
Banner图

Plugear Conditional Recommendation Flow

开发者 plugear
更新时间 2026年12月4日 08:34
PHP版本: 8.2 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

quiz questionnaire product recommendation diagnosis personality quiz

下载

1.1.2

详情介绍:

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. Features 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 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.

安装:

  1. Go to Plugins → Add Plugin, search for "Plugear Conditional Recommendation Flow", then install and activate it.
  2. Under Recommendation Flow → Questions, add your questions, each with at least two choices.
  3. Under Recommendation Flow → Add new, create a question set and add the questions on its Manage questions tab.
  4. Under Recommendation Flow → Content, write a result: choose the question set, tick the choices under Answer condition settings, set the Display order and publish. Repeat for each result.
  5. Insert the Recommendation Flow block into a page, or paste [plg_mqs_simulator id="123"].
Coming from Multi Questions Simulator 1.0? See "Upgrading from 1.0" in the FAQ first. Requires WordPress 7.0 and PHP 8.2 or later. Contact Form 7 is optional (6.2 needs WordPress 7.1 and PHP 8.3). Building the block from source The editor script in block/build/ is compiled with @wordpress/scripts from the unminified sources in block/src/. To rebuild: npm install && npm run build

屏幕截图:

  • The results: every result whose answer conditions match, in your display order.
  • A result's answer conditions: for each question, tick the choices the result is for.
  • The question set editor: add and reorder questions on the Manage questions tab.
  • Design settings: a color preset, individual colors, border, shadow and a title icon.
  • The question set's edit screen with the shortcode, the pages that use the set and the Result views count.
  • Placing a quiz with the Recommendation Flow block.

升级注意事项:

1.1.2 Visitors now see only published question sets without a password. Publish any draft, pending, private or scheduled set that your pages embed. 1.1.1 Security fixes for sites where Authors or Contributors edit quizzes. Clear page caches after updating, so that quizzes on cached pages still show their results. 1.1.0 Renamed from Multi Questions Simulator (new slug), so 1.0 gets no update: back up, deactivate 1.0, install and activate this plugin, open an admin page, then delete 1.0. In theme files or custom fields, change [mqs_simulator to [plg_mqs_simulator. Custom scripts stop running. Clear page caches. 1.0.1 Security fixes. Requires WordPress 7.0 and PHP 8.2. Trashed question sets are no longer displayed.

常见问题:

When exactly is a result shown?

When the visitor has answered every question, a result is shown if it is published and assigned to the question set, has at least one tick, and for every question with ticks the visitor picked a ticked choice. Only published questions of the set count. Ticks on questions removed from the set or switched to draft are ignored; a result whose ticks are all on such questions is shown for any answer. A set without published questions is not displayed.

A result I expected does not appear

Usually a question with ticks was not answered. This happens when a page was cached before you added a question: visitors with the old page cannot answer it. Clear your page cache after adding questions.

How many questions can a question set have?

Up to 100 published questions. A set with more shows an error message instead of results. Choices are unlimited.

I use a page cache. Anything to watch out for?

The results are requested with a security token printed into the page, which expires after 12 to 24 hours. A page cached for longer shows "A network error occurred." instead of results. Keep the cache lifetime under 12 hours or exclude pages with a quiz. Also clear the cache after adding questions and after updating this plugin.

The quiz has no styling when I place it from my theme

The assets load only on pages whose own content contains the block or shortcode. For theme templates, widgets, synced patterns or custom fields, go to Recommendation Flow → Settings and turn on Load CSS/JS even on pages where the shortcode is not detected.

The quiz shows for me but not for visitors

Visitors see a question set only while it is published without a password. Draft, pending, private, scheduled and password-protected sets are shown only to users who can edit them, so that you can preview them. The Shortcode box on the question set's edit screen says so while visitors cannot see it. The block lists published question sets only.

What happens to pages if I trash a question set?

The quiz disappears from the pages that embed it until you restore the set and publish it again. Check Pages using this set before trashing; it does not see placements in theme templates, widgets or custom fields.

What does the Result views count include?

Every time the results of the set are shown: also when nothing matched, when a visitor retakes the quiz, and when you test it while logged in. It counts views, not people.

The text settings are empty. How do I get a default text back?

Leave a text setting empty (result heading, result count, loading, no results, restart and back buttons) to use the default text. It is not saved, so it is shown in the site's language. Question sets saved with version 1.0 keep the texts that were filled in at that time; empty a field to go back to the default.

What happens to my data when I delete the plugin?

Nothing is deleted, so a reinstall picks everything up again. To remove your data, delete the question sets, questions and results permanently (empty the Trash) before deleting the plugin. A few small settings (options starting with plg_mqs_) remain.

Upgrading from 1.0

Version 1.0 was called Multi Questions Simulator (shown as 診断シミュレーション on Japanese sites; folder multi-questions-simulator). The name and slug have changed, so 1.0 does not receive this version as an update. Replace it instead; your data is kept:

  1. Back up your database. This version requires WordPress 7.0 and PHP 8.2 or later. Then deactivate Multi Questions Simulator 1.0 (this does not delete any data).
  2. Go to Plugins → Add Plugin, search for "Plugear Conditional Recommendation Flow", install it and activate it.
  3. Open any admin page. This converts your saved data to the new format (only once). Check that your quizzes are displayed.
  4. Delete Multi Questions Simulator 1.0. It has no uninstall routine, so deleting it does not delete your data.
  5. If you activate this plugin while 1.0 is still active, this plugin is the one that stops, with a notice. Deactivate 1.0, and this plugin runs from the next page load and converts your data.
  6. Delete 1.0 rather than keeping it deactivated. Reactivating 1.0.1 stops this plugin, and what you create in 1.0.1 meanwhile is not carried over (1.0 cannot read the converted data); 1.0.0 cannot be activated next to this plugin. And if another plugin ever takes the old slug on WordPress.org, it could be offered to 1.0 as an "update".
  7. The screens are now written in English. Japanese arrives as a language pack once its translation is approved on translate.wordpress.org; until then, Japanese sites show the screens in English too.
  8. Shortcodes and blocks in posts and widgets keep working. In theme files, page builders or custom fields, replace [mqs_simulator with [plg_mqs_simulator.
  9. If the editor says the block is not supported, do not delete it or convert it to HTML; its name is still being switched. Open the editor again later.
  10. Theme template overrides are now looked up in plg-mqs/. Copy the new bundled template there and reapply your changes; copying your old one would cause a fatal error.
  11. Scripts added to results no longer run. Saved scripts are kept.
More, including the renamed hooks and post types: Upgrading from 1.0.

Why does the code still mention mqs?

mqs is short for the plugin's former name, Multi Questions Simulator. Existing sites store their data under names built from it (such as the plg_mqs_ prefix), so they are kept to avoid breaking saved data. The names used by 1.0 are kept in includes/class-legacy-names.php only to recognize and convert data and placements from 1.0; nothing is registered or fired under them. CSS classes and mqs: events keep their names so your own styles and scripts keep working.

What does the Pro edition add?

Plugear Conditional Recommendation Flow Pro adds step-by-step analytics, import and export, templates, duplicating a question set together with its questions and results, and a setting that keeps content-based spam filters from blocking forms sent from results. It uses the same data (Pro 1.2.0 or later).

更新日志:

1.1.2 1.1.1 1.1.0