WP Manifestindependent plugin directory
manifest / forms / fof-wp

Feit of Fabel-Quiz self-updates

Feit of fabel-quiz maker voor wordpress.

by Daniël Dols, Trimbos Instituut · github.com/daniellinski/fof-wp

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/daniellinski/fof-wp/archive/refs/heads/main.zip

Ships its own WordPress updater (Plugin Update Checker), so new versions show up under Dashboard → Updates.

Readme

=== Feit of Fabel Quiz === Reusable ACF-managed 'feit of fabel' quizzes with a Gutenberg block, shortcode, sharing, and analytics-ready browser events.

== Requirements ==

  • WordPress 6.0 or newer
  • PHP 7.4 or newer
  • Advanced Custom Fields Pro (the repeater field and ACF Gutenberg block are used)
  • Bootstrap 5 (the plugin uses Bootstrap components, grid, and utilities for its layout)

== Updates ==

The plugin checks https://github.com/daniellinski/fof-wp for new versions and shows updates in WordPress when available. To publish one, increase the version in feit-of-fabel-quiz.php and create a matching GitHub release or tag.

== Usage ==

  1. Activate the plugin and ACF Pro.
  2. Go to Quizzes > Nieuwe quiz and add the questions.
  3. Add the “Fact of fabel quiz” Gutenberg block and select the quiz.
  4. Or use [fact_or_fiction_quiz id="123"].

Shortcode options:

  • id: quiz post ID
  • slug: quiz slug, used when no ID is supplied
  • show_intro: true to show the quiz title and description (default: false)
  • class: optional CSS class names for the wrapper

Example: [fact_or_fiction_quiz slug="alcohol-feiten" show_intro="true" class="my-quiz"]

== Analytics hooks ==

The plugin emits bubbling browser CustomEvents from the quiz element:

  • fofQuiz:quiz_started
  • fofQuiz:question_answered
  • fofQuiz:correct_answer
  • fofQuiz:incorrect_answer
  • fofQuiz:quiz_completed
  • fofQuiz:score_achieved
  • fofQuiz:share_button_clicked
  • fofQuiz:event for every event; event.detail.eventName identifies the event

Example:

document.addEventListener('fofQuiz:event', function (event) { console.log(event.detail); });

If wp.hooks is present, the same events run as actions such as fofQuiz.quiz_completed.

To push these events to a dataLayer, enable:

add_filter('fof_quiz_enable_data_layer', '__return_true');

The resulting names are prefixed with fof_, for example fof_quiz_completed.

== Customization ==

Override the plugin CSS custom properties on .fof-quiz-wrap, for example:

.fof-quiz-wrap { --fof-primary: #a5027d; --fof-fact: #8cab00; --fof-fabel: #bd0000; }

Available PHP filters include fof_quiz_post_type_args, fof_quiz_settings, fof_quiz_image_size, fof_quiz_rendered_html, and fof_quiz_enable_data_layer.

Read the full README on GitHub →

Releases

TagPublished
1.4.7 Aug 17, 2026

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.