Black friday and cyber monday promo Black friday and cyber monday promo
Black friday and cyber monday promo
Grab now

Amelia WP Hooks for Events

Please note that using hooks requires a certain level of programming skills and included support refers only to advice.

Event added

amelia_before_event_added_filter

Users can use this filter to manipulate event data before it is added.

Type: filter

Example:

function example($event)
{
    // change event data
    return $event;
}

add_filter('amelia_before_event_added_filter', 'example', 10, 1);

amelia_before_event_added

Users can use this hook to do an action before the event is added.

Type: action

Example:

function example($event)
{
    // do action
}

add_action('amelia_before_event_added', 'example', 10, 1);

amelia_after_event_added

Users can use this hook to do an action after a event is added.

Type: action

Example:

function example($event)
{
    // do action
}

add_action('amelia_after_event_added', 'example', 10, 1);

Event updated

amelia_before_event_updated_filter

Users can change the event data before it is updated.

Type: filter

Example:

function example($event, $oldEvent, $applyGlobally)
{
    // change event data
    return $event;
}

add_filter('amelia_before_event_updated_filter', 'example', 10, 3);

amelia_before_event_updated

User can use this hook to do an action before the event is updated.

Type: action

Example:

function example($data)
{
    // do action
}

add_action('amelia_before_event_updated', 'example', 10, 1);

amelia_after_event_updated

Users can use this hook to do an action after the event is updated.

Type: action

Example:

function example($data)
{
    // do action
}

add_action('amelia_after_event_updated', 'example', 10, 1);

Get events

amelia_get_events_filter

Users can change the events retrieved.

Type: filter

Example:

function example($events)
{
    // change events
    return $events;
}

add_filter('amelia_get_events_filter', 'example', 10, 1);

amelia_get_events

Users can use this hook to do an action before the events are retrieved

Type: action

Example:

function example($events)
{
    // do action
}

add_action('amelia_get_events', 'example', 10, 1);

Get event

amelia_get_event_filter

Users can change the event data before it is retrieved for the backend.

Type: filter

Example:

function example($event)
{
    // change event data
    return $event;
}

add_filter('amelia_get_event_filter', 'example', 10, 1);

amelia_get_event

Users can use this hook to do an action before the event is retrieved for the backend.

Type: action

Example:

function example($event)
{
    // do action
}

add_action('amelia_get_event', 'example', 10, 1);

Event deleted

amelia_before_event_deleted

Users can use this hook to do an action before the event is deleted.

Type: action

Example:

function example($event)
{
    // do action
}
add_action('amelia_before_event_deleted', 'example', 10, 1)

amelia_after_event_deleted

Users can use this hook to do an action after the event is deleted.

Type: action

Example:

function example($event)
{
    // do action
}

add_action('amelia_after_event_deleted', 'example', 10, 1);

Event booking added

amelia_before_event_booking_saved_filter

Users can use this hook to change the booking data before an event booking is saved to the database

Type: filter

Example:

function example($booking, $reservation)
{
    // change booking data
    return $booking;
}

add_filter('amelia_before_event_booking_saved_filter', 'example', 10, 2);

amelia_before_event_booking_saved

Users can use this hook to do an action before the event booking is saved to the database.

Type: action

Example:

function example($booking, $reservation)
{
    // do action
}

add_action('amelia_before_event_booking_saved', 'example', 10, 2);

amelia_after_event_booking_saved

Users can use this hook to do an action after the event booking is saved to the database.

Type: action

Example:

function example($booking, $reservation)
{
    // do action
}

add_action('amelia_after_event_booking_saved', 'example', 10, 2);

Event booking updated

amelia_before_event_booking_updated

Users can use this hook to do an action before the event booking is updated from the backend.

Type: action

Example:

function example($booking, $oldBooking)
{
    // do action
}

add_action('amelia_before_event_booking_updated', 'example', 10, 2);

amelia_after_event_booking_updated

Users can use this hook to do an action after the event booking is updated from the backend.

Type: action

Example:

function example($booking, $oldBooking)
{
    // do action
}

add_action('amelia_after_event_booking_updated', 'example', 10, 2);

Event booking deleted

amelia_before_event_booking_deleted

Users can use this hook to do an action before the event booking is deleted from the backend.

Type: action

Example:

function example($booking, $event)
{
    // do action
}

add_action('amelia_before_event_booking_deleted', 'example', 10, 2);

amelia_after_event_booking_deleted

Users can use this hook to do an action after the event booking is deleted from the backend.

Type: action

Example:

function example($booking, $event)
{
    // do action
}

add_action('amelia_after_event_booking_deleted', 'example', 10, 2);