Resource added
amelia_before_resource_added_filter
Users can use this filter to manipulate resource data before it is added.
Type: filter
Example:
function example($resource)
{
// change resource data
return $resource;
}
add_filter('amelia_before_resource_added_filter', 'example', 10, 1);
amelia_before_resource_added
Users can use this hook to do an action before the resource is added.
Type:Â action
Example:
function example($resource)
{
// do action
}
add_action('amelia_before_resource_added', 'example', 10, 1);
amelia_after_resource_added
Users can use this hook to do an action after a resource is added.
Type:Â action
Example:
function example($resource)
{
// do action
}
add_action('amelia_after_resource_added', 'example', 10, 1);
Resource updated
amelia_before_resource_updated_filter
Users can change the resource data before it is updated.
Type:Â filter
Example:
function example($resource)
{
// change resource data
return $resource;
}
add_filter('amelia_before_resource_updated_filter', 'example', 10, 1);
amelia_before_resource_updated
User can use this hook to do an action before the resource is updated.
Type:Â action
Example:
function example($resource)
{
// do action
}
add_action('amelia_before_resource_updated', 'example', 10, 1);
amelia_after_resource_updated
Users can use this hook to do an action after the resource is updated.
Type:Â action
Example:
function example($resource)
{
// do action
}
add_action('amelia_after_resource_updated', 'example', 10, 1);
Get resources
amelia_get_resources_filter
Users can change the resources retrieved before they are sent to the backend
Type:Â filter
Example:
function example($resources)
{
// change resources
return $resources;
}
add_filter('amelia_get_resources_filter', 'example', 10, 1);
amelia_get_resources
Users can use this hook to do an action before the resources are retrieved to the backend.
Type:Â action
Example:
function example($resources)
{
// do action
}
add_action('amelia_get_resources', 'example', 10, 1);
Resource deleted
amelia_before_resource_deleted
Users can use this hook to do an action before the resource is deleted.
Type:Â action
Example:
function example($resourceId)
{
// do action
}
add_action('amelia_before_resource_deleted', 'example', 10, 1);
amelia_after_resource_deleted
Users can use this hook to do an action after the resource is deleted.
Type:Â action
Example:
function example($resourceId)
{
// do action
}
add_action('amelia_after_resource_deleted', 'example', 10, 1);