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

Amelia WP Hooks for Customers

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

Customer added

amelia_before_customer_added_filter

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

Type: filter

Example:

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

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

amelia_before_customer_added

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

Type: action

Example:

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

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

amelia_after_customer_added

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

Type: action

Example:

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

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

amelia_customer_wp_created

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

Type: action

Example:

function example($customer, $container)
{
    // do action
}

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

Customer updated

amelia_before_customer_updated_filter

Users can change the customer data before it is updated.

Type: filter

Example:

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

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

amelia_before_customer_updated

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

Type: action

Example:

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

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

amelia_after_customer_updated

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

Type: action

Example:

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

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

Get customers

amelia_get_customers_filter

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

Type: filter

Example:

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

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

amelia_get_customers

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

Type: action

Example:

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

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

Get customer

amelia_get_customer_filter

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

Type: filter

Example:

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

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

amelia_get_customer

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

Type: action

Example:

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

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