Don’t miss our Special Offer!

Up to 50% off
Grab Amelia
Grab Amelia

Amelia WP Hooks for Appointments

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

Appointment added

amelia_before_appointment_added_filter

Users can use this filter to manipulate appointment data before it is added from the backend.

Type: filter

Example:

function example($appointment, $service, $paymentData)
{
    // change appointment data
    return $appointment;
}

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

amelia_before_appointment_added

Users can use this hook to do an action before the appointment is added from the backend.

Type: action

Example:

function example($appointment, $service, $paymentData)
{
    // do action
}

add_action('amelia_before_appointment_added', 'example', 10, 3);

amelia_after_appointment_added

Users can use this hook to do an action after an appointment is added from the backend.

Type: action

Example:

function example($appointment, $service, $paymentData)
{
    // do action
}

add_action('amelia_after_appointment_added', 'example', 10, 3);

Appointment updated

amelia_before_appointment_updated_filter

Users can change the appointment data before it is updated from the backend.

Type: filter

Example:

function example($appointment, $removedBookings, $service)
{
    // change appointment data
    return $appointment;
}

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

amelia_before_appointment_updated

User can use this hook to do an action before the appointment is updated from the backend.

Type: action

Example:

function example($appointment, $removedBookings, $service)
{
    // do action
}

add_action('amelia_before_appointment_updated', 'example', 10, 3);

amelia_after_appointment_updated

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

Type: action

Example:

function example($appointment, $oldAppointment, $removedBookings, $service, $paymentData)
{
    // do action
}

add_action('amelia_after_appointment_updated', 'example', 10, 5);

Appointment status updated

amelia_before_appointment_status_updated

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

Type: action

Example:

function example($appointment, $requestedStatus)
{
    // do action
}

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

amelia_after_appointment_status_updated

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

Type: action

Example:

function example($appointment, $requestedStatus)
{
    // do action
}

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

Get appointments

amelia_get_appointments_filter

Users can change the appointments retrieved before they are sent to the backend

Type: filter

Example:

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

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

amelia_get_appointments

Users can use this hook to do an action before the appointments are retrieved to the backend.

Type: action

Example:

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

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

Get appointment

amelia_get_appointment_filter

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

Type: filter

Example:

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

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

amelia_get_appointment

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

Type: action

Example:

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

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

Appointment deleted

amelia_before_appointment_deleted

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

Type: action

Example:

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

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

amelia_after_appointment_deleted

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

Type: action

Example:

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

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