EME provides a number of hooks and filters so you can customize a number of things to your liking. For a howto in general about hooks and filters, see here for actions and here for filters.
As an example, if you would want to hook into eme_insert_rsvp_action, you would add something like this to your theme’s functions.php:
add_action('eme_insert_rsvp_action','do_my_stuff');
function do_my_stuff($booking) {
....
}
The following hooks are available:
- eme_insert_event_action (1 parameter: $event)
- eme_update_event_action (1 parameter: $event)
- eme_insert_recurrence_action (2 parameters: $event,$recurrence)
- eme_update_recurrence_action (2 parameters: $event,$recurrence)
- eme_insert_rsvp_action (1 parameter: $booking), executed after inserting rsvp info into the db
The following filters are available:
- eme_event_filter (1 parameter: $event array)
- eme_event_list_filter (1 parameter: array of events)
- eme_location_filter (1 parameter: $location array)
- eme_location_list_filter (1 parameter: array of locations)
- eme_directions_form_filter (1 parameter: generated html for the directions form)
- eme_add_booking_form_filter and eme_delete_booking_form_filter (1parameter: generated html for the add or delete booking form)
- eme_email_filter (If defined, the standard ascii obfuscating won’t take place and you can use your own filters, eg. from an obfuscating plugin, if you define it in functions.php:
add_filter( ‘eme_email_filter’, ‘c2c_obfuscate_email’ );)