Support
View Demo
en
Amelia provides hooks related to entities, allowing you to modify entity data or run custom actions when entities are retrieved for use on front end forms and back end pages. These hooks help you extend Amelia safely without adjusting core plugin files.
amelia_get_entities_filter
Type: filter
Use this filter to modify entities retrieved for front end forms and back end pages.
function example($entities)
{
return $entities;
}
add_filter('amelia_get_entities_filter', 'example', 10, 1);
amelia_get_entities
Type: action
Runs before entities are returned for front end forms and back end pages.
function example($entities)
{
// do action
}
add_action('amelia_get_entities', 'example', 10, 1);