Christmas shapes Christmas shapes
Santa's best deal Get up to 60  off! Get up to 60  off!
Grab the deal

Amelia WP Hooks for Categories

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

Category added

amelia_before_category_added_filter

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

Type: filter

Example:

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

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

amelia_before_category_added

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

Type: action

Example:

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

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

amelia_after_category_added

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

Type: action

Example:

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

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

Category updated

amelia_before_category_updated_filter

Users can change the category data before it is updated.

Type: filter

Example:

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

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

amelia_before_category_updated

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

Type: action

Example:

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

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

amelia_after_category_updated

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

Type: action

Example:

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

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

Get categories

amelia_get_categories_filter

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

Type: filter

Example:

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

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

amelia_get_categories

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

Type: action

Example:

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

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

Get category

amelia_get_category_filter

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

Type: filter

Example:

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

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

amelia_get_category

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

Type: action

Example:

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

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

Category deleted

amelia_before_category_deleted

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

Type: action

Example:

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

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

amelia_after_category_deleted

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

Type: action

Example:

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

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