Location added
amelia_before_location_added_filter
Users can use this filter to manipulate location data before it is added.
Type: filter
Example:
function example($location)
{
// change location data
return $location;
}
add_filter('amelia_before_location_added_filter', 'example', 10, 1);
amelia_before_location_added
Users can use this hook to do an action before the location is added.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_before_location_added', 'example', 10, 1);
amelia_after_location_added
Users can use this hook to do an action after a location is added.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_after_location_added', 'example', 10, 1);
Location updated
amelia_before_location_updated_filter
Users can change the location data before it is updated.
Type:Â filter
Example:
function example($location)
{
// change location data
return $location;
}
add_filter('amelia_before_location_updated_filter', 'example', 10, 1);
amelia_before_location_updated
User can use this hook to do an action before the location is updated.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_before_location_updated', 'example', 10, 1);
amelia_after_location_updated
Users can use this hook to do an action after the location is updated.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_after_location_updated', 'example', 10, 1);
Get locations
amelia_get_locations_filter
Users can change the locations retrieved before they are sent to the backend
Type:Â filter
Example:
function example($locations)
{
return $locations;
}
add_filter('amelia_get_locations_filter', 'example', 10, 1);
amelia_get_locations
Users can use this hook to do an action before the locations are retrieved to the backend.
Type:Â action
Example:
function example($locations)
{
// do action
}
add_action('amelia_get_locations', 'example', 10, 1);
Get location
amelia_get_location_filter
Users can change the location data before it is retrieved for the backend.
Type:Â filter
Example:
function example($location)
{
return $location;
}
add_filter('amelia_get_location_filter', 'example', 10, 1);
amelia_get_location
Users can use this hook to do an action before the location is retrieved for the backend.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_get_location', 'example', 10, 1);
Location deleted
amelia_before_location_deleted
Users can use this hook to do an action before the location is deleted.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_before_location_deleted', 'example', 10, 1);
amelia_after_location_deleted
Users can use this hook to do an action after the location is deleted.
Type:Â action
Example:
function example($location)
{
// do action
}
add_action('amelia_after_location_deleted', 'example', 10, 1);