Eventin Addon for Tutor LMS
This addon connects Eventin event ticket purchases to Tutor LMS course enrollment.
After you map an Eventin event’s ticket types to one or more Tutor LMS courses, the plugin will automatically enroll the purchaser (or all registered attendees) when the order is completed.
Features:
- Ticket-type → course mapping per event (supports multiple courses per ticket)
- Option to enroll purchaser only, or all registered attendees
- Optional auto-creation of WordPress user accounts for guest attendees
- Optional unenroll on refund/cancellation/failure
External Services
This plugin does not send data to external services.
Development / Build
This plugin ships with compiled JavaScript in build/index.js, produced from
the human-readable React/JSX sources in src/ that are included alongside the
compiled bundle in the plugin ZIP.
Build tooling: @wordpress/scripts (webpack) is the only JS bundler.
Gruntfile.js is an optional orchestrator that runs lint/phpcs/i18n checks
and packages a distributable zip — it does not transform source code.
To rebuild from source:
npm installnpm run build:js(writesbuild/index.jsandbuild/index.asset.php)
Source layout:
src/index.jsx— bundle entry, registers the React mapping panelsrc/components/— React components rendered into the Eventin adminsrc/api/— REST client wrappersrc/filters/— WordPress JS hook registrations
Build configuration (not part of the runtime source):
package.json— npm scripts and dev dependenciesGruntfile.js— release orchestration (lint, phpcs, zip)
No third-party libraries are bundled beyond the WordPress core packages that
@wordpress/scripts externalises (declared in build/index.asset.php).
