Special deal!
SAVE UP TO 50% OFF!
Grab now

Amelia WP Hooks for Services

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

Service added

amelia_before_service_added_filter

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

Type: filter

Example:

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

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

amelia_before_service_added

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

Type: action

Example:

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

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

amelia_after_service_added

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

Type: action

Example:

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

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

Service updated

amelia_before_service_updated_filter

Users can change the service data before it is updated.

Type: filter

Example:

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

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

amelia_before_service_updated

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

Type: action

Example:

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

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

amelia_after_service_updated

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

Type: action

Example:

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

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

Get services

amelia_get_services_filter

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

Type: filter

Example:

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

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

amelia_get_services

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

Type: action

Example:

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

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

Get service

amelia_get_service_filter

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

Type: filter

Example:

function example($service)
{
    return $service;
}

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

amelia_get_service

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

Type: action

Example:

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

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

Service deleted

amelia_before_service_deleted

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

Type: action

Example:

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

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

amelia_after_service_deleted

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

Type: action

Example:

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

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