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);