Limited time discount Book Smarter This Christmas
Up to 50%Off

How can I use WordPress hooks for entities in Amelia

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.

Info Example
Hooks require programming knowledge, and support is limited to general guidance.

Get entities

How do I modify entities before they are returned?

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

How do I run code before entities are returned?

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