Feit of Fabel-Quiz self-updates
Feit of fabel-quiz maker voor wordpress.
by Daniël Dols, Trimbos Instituut · github.com/daniellinski/fof-wp
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.zipShips 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 ==
- Activate the plugin and ACF Pro.
- Go to Quizzes > Nieuwe quiz and add the questions.
- Add the “Fact of fabel quiz” Gutenberg block and select the quiz.
- Or use
[fact_or_fiction_quiz id="123"].
Shortcode options:
id: quiz post IDslug: quiz slug, used when no ID is suppliedshow_intro:trueto 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_startedfofQuiz:question_answeredfofQuiz:correct_answerfofQuiz:incorrect_answerfofQuiz:quiz_completedfofQuiz:score_achievedfofQuiz:share_button_clickedfofQuiz:eventfor every event;event.detail.eventNameidentifies 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
| Tag | Published |
|---|---|
| 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.