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

Amelia WP Hooks for Packages

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

Package added

amelia_before_package_added_filter

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

Type: filter

Example:

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

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

amelia_before_package_added

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

Type: action

Example:

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

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

amelia_after_package_added

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

Type: action

Example:

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

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

Package updated

amelia_before_package_updated_filter

Users can change the package data before it is updated.

Type: filter

Example:

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

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

amelia_before_package_updated

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

Type: action

Example:

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

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

amelia_after_package_updated

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

Type: action

Example:

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

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

Get packages

amelia_get_packages_filter

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

Type: filter

Example:

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

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

amelia_get_packages

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

Type: action

Example:

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

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

Package deleted

amelia_before_package_deleted

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

Type: action

Example:

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

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

amelia_after_package_deleted

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

Type: action

Example:

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

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