

操作ガイド
フックの使用には一定レベルのプログラミングスキルが必要であり、プラグインで提供されるサポートには含まれていません。
読みたいところをタップ
amelia_before_notification_added_filter
お客様は、このフィルターを使用して、通知が追加される前の通知データを操作できます。
タイプ: フィルター
例:
function example($notification) {
return $notification;
}
add_filter('amelia_before_notification_added_filter', 'example', 10, 1);
amelia_before_notification_added
お客様は、通知が追加される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_before_notification_added', 'example', 10, 1);
function example($notification) {
// アクションを実行
}
add_action('amelia_before_notification_added', 'example', 10, 1);
amelia_after_notification_added
お客様は、通知が追加された後にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_after_notification_added', 'example', 10, 1);
amelia_before_notification_updated_filter
お客様は、このフィルターを使用して、通知が更新される前の通知データを変更できます。
タイプ: フィルター
例:
function example($notification) {
// 通知データを変更
return $notification;
}
add_filter('amelia_before_notification_updated_filter', 'example', 10, 1);
amelia_before_notification_updated
お客様は、通知が更新される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_before_notification_updated', 'example', 10, 1);
amelia_after_notification_updated
お客様は、通知が更新された後にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_after_notification_updated', 'example', 10, 1);
amelia_before_notification_status_updated
お客様は、通知ステータスが更新される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($status, $notificationId) {
// アクションを実行
}
add_action('amelia_before_notification_status_updated', 'example', 10, 2);
amelia_after_notification_status_updated
お客様は、通知ステータスが更新された後にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($status, $notificationId) {
// アクションを実行
}
add_action('amelia_after_notification_status_updated', 'example', 10, 2);
amelia_get_notifications_filter
お客様は、このフィルターを使用して、管理者側に送信される前に取得された通知を変更できます。
タイプ: フィルター
例:
function example($notifications) {
return $notifications;
}
add_filter('amelia_get_notifications_filter', 'example', 10, 1);
amelia_get_notifications
お客様は、通知が管理者側に取得される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notifications) {
// アクションを実行
}
add_action('amelia_get_notifications', 'example', 10, 1);
amelia_get_sms_history_filter
お客様は、このフィルターを使用して、管理者側に取得される前のSMS履歴データを変更できます。
タイプ: フィルター
例:
function example($notifications) {
return $notifications;
}
add_filter('amelia_get_sms_history_filter', 'example', 10, 1);
amelia_get_sms_history
お客様は、SMS履歴が管理者側に取得される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notifications) {
// アクションを実行
}
add_action('amelia_get_sms_history', 'example', 10, 1);
amelia_before_send_sms_request_filter
お客様は、このフィルターを使用して、SMSリクエストが実行される前(テストSMSの送信、ユーザー情報の取得、国別料金リストの取得、パスワードのリセット)のデータを変更できます。
タイプ: フィルター
例:
function example($data, $action) {
return $data;
}
add_filter('amelia_before_send_sms_request_filter', 'example', 10, 2);
amelia_before_send_sms_request
お客様は、SMSリクエストが実行される前(テストSMSの送信、ユーザー情報の取得、国別料金リストの取得、パスワードのリセット)にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($data, $action) {
// アクションを実行
}
add_action('amelia_before_send_sms_request', 'example', 10, 2);
amelia_after_send_sms_request
お客様は、SMSリクエストが実行された後(テストSMSの送信、ユーザー情報の取得、国別料金リストの取得、パスワードのリセット)にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($data, $action) {
// アクションを実行
}
add_action('amelia_after_send_sms_request', 'example', 10, 2);
amelia_before_send_scheduled_notifications
お客様は、スケジュールされた通知が送信される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example() {
// アクションを実行
}
add_action('amelia_before_send_scheduled_notifications', 'example', 10, 0);
amelia_after_send_scheduled_notifications
お客様は、スケジュールされた通知が送信された後にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example() {
// アクションを実行
}
add_action('amelia_after_send_scheduled_notifications', 'example', 10, 0);
amelia_modify_scheduled_notification_time_after
お客様は、通知の送信「後」の時間を変更できます。
タイプ: フィルター
例:
function example($timeAfter, $notification) {
return $timeAfter;
}
add_filter('amelia_modify_scheduled_notification_time_after', 'example', 10, 2);
amelia_modify_scheduled_notification_last_time
お客様は、予約後の通知を送信する最終時間を変更できます。
タイプ: フィルター
例:
function example($lastTime, $notification) {
return $lastTime;
}
add_filter('amelia_modify_scheduled_notification_last_time', 'example', 10, 2);
amelia_modify_scheduled_notification_time_before
お客様は、通知の送信「前」の時間を変更できます。
タイプ: フィルター
例:
function example($timeBefore, $notification) {
return $timeBefore;
}
add_filter('amelia_modify_scheduled_notification_time_before', 'example', 10, 2);
amelia_manipulate_email_data
お客様は、メールが送信される前のメールデータを変更できます。
タイプ: フィルター
例:
function example($data) {
// 'skipSending'をtrueに設定すると、メールの送信をスキップできます
$data['skipSending'] = true;
return $data;
}
add_filter( 'amelia_manipulate_email_data', 'example', 10, 1 );
amelia_manipulate_test_email_data
お客様は、テストメールデータを変更できます。
タイプ: フィルター
例:
function example($data) {
return $data;
}
add_filter( 'amelia_manipulate_test_email_data', 'example', 10, 1 );
amelia_manipulate_sms_data
お客様は、SMSが送信される前のSMSデータを変更できます。
タイプ: フィルター
例:
function example($data) {
// 'skipSending'をtrueに設定すると、SMSの送信をスキップできます
$data['skipSending'] = true;
return $data;
}
add_filter( 'amelia_manipulate_sms_data', 'example', 10, 1 );
amelia_dynamic_placeholder_{nameOfPlaceholder}
お客様は、このフィルターを使用して、通知に任意のプレースホルダーを追加し、適切な値に置き換えることができます。通知テンプレートでは、%amelia_dynamic_placeholder_{nameOfPh}% を追加します。
タイプ: フィルター
例:
function example($data) {
// 新しいプレースホルダーを返す
return 'service custom name';
}
add_filter('amelia_dynamic_placeholder_serviceCustomName', 'example', 10, 1);
amelia_before_notification_deleted
お客様は、通知が削除される前にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_before_notification_deleted', 'example', 10, 1);
amelia_after_notification_deleted
お客様は、通知が削除された後にアクションを実行するためにこのフックを使用できます。
タイプ: アクション
例:
function example($notification) {
// アクションを実行
}
add_action('amelia_after_notification_deleted', 'example', 10, 1);