Skip to main content

WordPress Actions

Here we have a list of all the actions that are available in the plugin.

caution

Please use with care! This can break the functionality of the plugin.

Actions

Some of the actions will have parameters that are passed to them, they will be explained in the section about the action.

eduadmin-booking-completed

This event fires when the booking is completed, and the "Thank you"-page is shown (requires the edu-thankyou query parameter to be present)

Parameter nameDescription
$booking_infoContains either a Booking or a ProgrammeBooking

This event can be used when you want to trigger some custom code after a booking has been completed, like if you want to trigger a webhook or something similar.

eduadmin-bookingcompleted

An old legacy event that is still available for backwards compatibility, used by some integrations/plugins to handle payment updates/information.

eduadmin-bookingerror

This event fires when there is an error with the booking.

Parameter nameDescription
$error_listContains the error message(s) that was returned from the API.

eduadmin-bookingform-loaded

This event fires when the booking form is loaded, and the booking form is about to be rendered.

Parameter nameDescription
$login_userContains information about the user that is logged in (or pseudo user if there is none).

eduadmin-bookingform-view

This event fires when the booking form has been loaded, and we know what course is shown.

Parameter nameDescription
$selected_courseContains the CourseTemplate that is shown in the booking form.

eduadmin-checkpaymentplugins

This event fires when the booking is about to be made, and the plugin is checking if there are any payment plugins that wants to inject themselves into the booking flow.

Parameter nameDescription
$ebiContains the EduAdmin_BookingInfo that has been created.

Example of how this is used in the plugin for Svea WebPay can be found here:

https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27

eduadmin-detail-view

This event fires when the detail view is loaded, and the detail view is about to be rendered.

Parameter nameDescription
$selected_courseContains the CourseTemplate that is shown.

eduadmin-list-course-view

This event fires when the course list view is loaded, and the list view has been rendered.

Parameter nameDescription
$coursesContains an array of the CourseTemplates that is shown in the list.

eduadmin-list-event-view

This event fires when the event list view is loaded, and the list view has been rendered.

Parameter nameDescription
$eventsContains an array of the Events that is shown in the list.

eduadmin-list-programme-view

This event fires when the event list view is loaded, and the list view has been rendered.

Parameter nameDescription
$programmesContains an array of the Programmes that is shown in the list.

eduadmin-plugin-save_<plugin-id>

This is an internal action, only used to save the options for a plugin.

https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173

eduadmin-processbooking

This event fires when the booking is made, and potential plugins can take part of the booking information for custom handling.

Parameter nameDescription
$ebiContains the EduAdmin_BookingInfo that has been created.

eduadmin-programme-bookingform-view

This event fires when the programme booking form has been loaded, and we know what programme is shown.

Parameter nameDescription
$programmeContains the Programme that is shown in the booking form.

eduadmin-programme-detail-view

This event fires when the programme detail view is loaded, and the detail view is about to be rendered.

Parameter nameDescription
$programmeContains the Programme that is shown in the detail view.

edu_integrations_init

This event fires when the plugin is loaded, and the integrations are about to be loaded.

eduadmin_loaded

This event fires when the plugin is loaded, and the plugin is done initializing.

eduadmin_showtimers

This event fires when the plugin is loaded, and the plugin is about to show the timers.

Can be used, if you want to extend the timer functionality, and add your own timers.