Data Machine Quiz
Extends Data Machine to auto-generate interactive quizzes with Schema.org structured data via WordPress Quiz Publish Handler and Quiz Gutenberg Block.
by Chris Huber · github.com/sarai-chinwag/data-machine-quiz · website
★ 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/sarai-chinwag/data-machine-quiz/archive/refs/heads/main.zipA WordPress plugin that extends Data Machine to publish interactive quizzes with Schema.org structured data.
Features
- Interactive quiz Gutenberg block with Schema.org Quiz markup
- WordPress Quiz Publish Handler for automated quiz creation
- Frontend interactivity using WordPress Interactivity API
- Comprehensive quiz data structure with questions, answers, and explanations
- SEO-optimized with rich snippets support
Requirements
- WordPress 6.2+
- PHP 8.2+
- Data Machine plugin
Installation
- Install and activate the Data Machine plugin
- Upload the
data-machine-quizfolder to/wp-content/plugins/ - Activate the plugin through the WordPress admin
- Run
composer installin the plugin directory - Run
npm install && npm run buildfor the block assets
Usage
Manual Quiz Creation
- Create a new post/page
- Add the "Quiz Schema" block
- Configure quiz settings and questions in the block editor
- Publish the post
Automated Quiz Creation
Use the "WordPress Quiz Publish" handler in Data Machine to automatically generate quiz posts from AI-generated content.
Development
Setup
composer install
npm install
Build Assets
npm run build # Production build
npm run start # Development watch mode
Code Quality
composer run lint # PHP linting
composer run lint:fix # PHP auto-fix
npm run lint:js # JS linting
npm run lint:css # CSS linting
License
GPL-2.0-or-later
Author
Chris Huber - https://chubes.net