Notification added
amelia_before_notification_added_filter
Users can use this filter to manipulate notification data before it is added.
Type: filter
Example:
function example($notification) { return $notification; } add_filter('amelia_before_notification_added_filter', 'example', 10, 1);
amelia_before_notification_added
Users can use this hook to do an action before the notification is added.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_before_notification_added', 'example', 10, 1);
amelia_after_notification_added
Users can use this hook to do an action after a notification is added.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_after_notification_added', 'example', 10, 1);
Notification updated
amelia_before_notification_updated_filter
Users can change the notification data before it is updated.
Type:Â filter
Example:
function example($notification) { // change notification data return $notification; } add_filter('amelia_before_notification_updated_filter', 'example', 10, 1);
amelia_before_notification_updated
User can use this hook to do an action before the notification is updated.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_before_notification_updated', 'example', 10, 1);
amelia_after_notification_updated
Users can use this hook to do an action after the notification is updated.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_after_notification_updated', 'example', 10, 1);
Notification status updated
amelia_before_notification_status_updated
User can use this hook to do an action before the notification status is updated.
Type:Â action
Example:
function example($status, $notificationId) { // do action } add_action('amelia_before_notification_status_updated', 'example', 10, 2);
amelia_after_notification_status_updated
Users can use this hook to do an action after the notification status is updated.
Type:Â action
Example:
function example($status, $notificationId) { // do action } add_action('amelia_after_notification_status_updated', 'example', 10, 2);
Get notifications
amelia_get_notifications_filter
Users can change the notifications retrieved before they are sent to the backend
Type:Â filter
Example:
function example($notifications) { return $notifications; } add_filter('amelia_get_notifications_filter', 'example', 10, 1);
amelia_get_notifications
Users can use this hook to do an action before the notifications are retrieved to the backend.
Type:Â action
Example:
function example($notifications) { // do action } add_action('amelia_get_notifications', 'example', 10, 1);
Get SMS history
amelia_get_sms_history_filter
Users can change the SMS history data before it is retrieved for the backend.
Type:Â filter
Example:
function example($notifications) { return $notifications; } add_filter('amelia_get_sms_history_filter', 'example', 10, 1);
amelia_get_sms_history
Users can use this hook to do an action before the SMS history is retrieved for the backend.
Type:Â action
Example:
function example($notifications) { // do action } add_action('amelia_get_sms_history', 'example', 10, 1);
Send SMS request
amelia_before_send_sms_request_filter
Users can change the data before an SMS request is executed (send test sms, get user info, get country price list, forgot password).
Type:Â filter
Example:
function example($data, $action) { return $data; } add_filter('amelia_before_send_sms_request_filter', 'example', 10, 2);
amelia_before_send_sms_request
Users can use this hook to do an action before an SMS request is executed (send test sms, get user info, get country price list, forgot password)
Type:Â action
Example:
function example($data, $action) { // do action } add_action('amelia_before_send_sms_request', 'example', 10, 2);
amelia_after_send_sms_request
Users can use this hook to do an action after an SMS request is executed (send test sms, get user info, get country price list, forgot password)
Type:Â action
Example:
function example($data, $action) { // do action } add_action('amelia_after_send_sms_request', 'example', 10, 2);
Scheduled notifications sent
amelia_before_send_scheduled_notifications
Users can use this hook to do an action before scheduled notifications are sent
Type:Â action
Example:
function example() { // do action } add_action('amelia_before_send_scheduled_notifications', 'example', 10, 0);
amelia_after_send_scheduled_notifications
Users can use this hook to do an action after scheduled notifications are sent
Type:Â action
Example:
function example() { // do action } add_action('amelia_after_send_scheduled_notifications', 'example', 10, 0);
Change scheduled notification time
amelia_modify_scheduled_notification_time_after
Users can change the notification’s time after
Type:Â filter
Example:
function example($timeAfter, $notification) { return $timeAfter; } add_filter('amelia_modify_scheduled_notification_time_after', 'example', 10, 2);
amelia_modify_scheduled_notification_last_time
Users can change the notification’s last time for sending notification after the appointment
Type:Â filter
Example:
function example($lastTime, $notification) { return $lastTime; } add_filter('amelia_modify_scheduled_notification_last_time', 'example', 10, 2);
amelia_modify_scheduled_notification_time_before
Users can change the notification’s time before
Type:Â filter
Example:
function example($timeBefore, $notification) { return $timeBefore; } add_filter('amelia_modify_scheduled_notification_time_before', 'example', 10, 2);
Change notification data
amelia_manipulate_email_data
Users can change the email data before it is sent
Type:Â filter
Example:
function example($data) { // set 'skipSending' to skip sending the email $data['skipSending'] = true; return $data; } add_filter( 'amelia_manipulate_email_data', 'example', 10, 1 );
amelia_manipulate_test_email_data
Users can change the test email data
Type:Â filter
Example:
function example($data) { return $data; } add_filter( 'amelia_manipulate_test_email_data', 'example', 10, 1 );
amelia_manipulate_sms_data
Users can change the SMS data before it is sent
Type:Â filter
Example:
function example($data) { // set 'skipSending' to skip sending the email $data['skipSending'] = true; return $data; } add_filter( 'amelia_manipulate_sms_data', 'example', 10, 1 );
amelia_dynamic_placeholder_{nameOfPlaceholder}
Users can add any placeholder to a notification and replace it with its appropriate value using this filter. In the notification template add %amelia_dynamic_placeholder_{nameOfPh}%
Type:Â filter
Example:
function example($data) { // return new placeholder return 'service custom name'; } add_filter('amelia_dynamic_placeholder_serviceCustomName', 'example', 10, 1);
Notification deleted
amelia_before_notification_deleted
Users can use this hook to do an action before the notification is deleted.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_before_notification_deleted', 'example', 10, 1);
amelia_after_notification_deleted
Users can use this hook to do an action after the notification is deleted.
Type:Â action
Example:
function example($notification) { // do action } add_action('amelia_after_notification_deleted', 'example', 10, 1);