

操作ガイド
フックを使用するには、一定レベルのプログラミングスキルが必要であり、プラグインで提供されるサポートには含まれていません。
amelia_before_booking_added_filter
ユーザーは、このフィルターを使用して、予約データが追加される前にデータを変更できます。これは、お客様側フォームで予約を行う際、または管理者側でコース予約を追加する際にトリガーされます。
タイプ: フィルター
例:
function example($appointment)
{
// 予約を変更する
return $appointment;
}
add_filter('amelia_before_booking_added_filter', 'example', 10, 1);amelia_before_booking_added
ユーザーは、このフックを使用して、予約が追加される前にアクションを実行できます。これは、お客様側フォームで予約を行う際、または管理者側でコース予約を追加する際にトリガーされます。
タイプ: アクション
例:
function example($appointment)
{
// アクションを実行する
}
add_action('amelia_before_booking_added', 'example', 10, 1);amelia_after_booking_added
ユーザーは、このフックを使用して、予約が追加された後にアクションを実行できます。これは、お客様側フォームで予約を登録したとき、または管理者側でコース予約を追加したときにトリガーされます。
タイプ: アクション
例:
function example($appointment)
{
// アクションを実行する
}
add_action('amelia_after_booking_added', 'example', 10, 1);amelia_after_booking_canceled
ユーザーは、予約がキャンセルされた後にアクションを実行するためにこのフックを使用できます(お客様マイページまたはメールから)。
タイプ: アクション
例:
function example($booking)
{
// アクションを実行する
}
add_action('amelia_after_booking_canceled', 'example', 10, 1);注: テキスト内で「amelia_after_booking_canceled」が2回記載されていましたが、ここでは一般的な命名規則に基づき、予約キャンセル後にトリガーされるアクションとして一度にまとめました。元のテキストに記載されていた「amelia_予約後_キャンセル」は、amelia_after_booking_canceledを指していると判断しました。
amelia_before_booking_rescheduled
ユーザーは、このフックを使用して、予約が日時の変更される前にアクションを実行できます(お客様マイページまたは管理者側のカレンダーページから)。
タイプ: アクション
例:
function example($oldAppointment, $booking, $bookingStart)
{
// アクションを実行する
}
add_action('amelia_before_booking_rescheduled', 'example', 10, 3);amelia_after_booking_rescheduled
ユーザーは、このフックを使用して、予約の日時の変更後にアクションを実行できます(お客様マイページまたは管理者側のカレンダーページから)。
タイプ: アクション
例:
function example($oldAppointment, $booking, $bookingStart)
{
// アクションを実行する
}
add_action('amelia_after_booking_rescheduled', 'example', 10, 3);amelia_before_post_booking_actions_filter
ユーザーは、予約後のアクション(メールの送信、カレンダーへの追加、Zoomミーティングの作成など)がトリガーされる前に予約データを変更できます。
タイプ: フィルター
例:
function example($resultData)
{
// データを変更する
return $resultData;
}
add_filter('amelia_before_post_booking_actions_filter', 'example', 10, 1);amelia_before_post_booking_actions
ユーザーは、予約後のアクション(メールの送信、カレンダーへの追加、Zoomミーティングの作成など)がトリガーされる前にアクションを実行できます。
タイプ: アクション
例:
function example($resultData)
{
// アクションを実行する
}
add_action('amelia_before_post_booking_actions', 'example', 10, 1);Booking status filters
ユーザーはこれらのフィルターを使用して、Webhookに送信されるデータを変更または追加できます。これらのフィルターは、Webhookの前、および予約後の他のアクション(メールの送信、Googleカレンダー、Zoomミーティングなど)の後に呼び出されます。
AmeliaAppointmentBookingCanceledFilterAmeliaAppointmentBookingAddedFilterAmeliaAppointmentBookingStatusUpdatedFilterAmeliaEventBookingCanceledFilterAmeliaEventBookingAddedFilterAmeliaEventBookingStatusUpdatedFilterタイプ: フィルター
例:
function example($data)
{
return $data;
}
add_filter('AmeliaAppointmentBookingAddedFilter', 'example', 10, 1);Booking status actions
ユーザーはこれらのフックを使用して、Webhookが送信される前にアクションを実行できます。これらのフックは、Webhookの送信前、および予約後の他のアクション(メールの送信、Googleカレンダー、Zoomミーティングなど)の後に呼び出されます。
AmeliaAppointmentBookingCanceledAmeliaAppointmentBookingAddedAmeliaAppointmentBookingStatusUpdatedAmeliaEventBookingCanceledAmeliaEventBookingAddedAmeliaEventBookingStatusUpdatedタイプ: アクション
例:
function example($reservation, $bookings, $container)
{
// アクションを実行する
}
add_action('AmeliaAppointmentBookingCanceled', 'example', 10, 3);Booking status filters
ユーザーはこれらのフィルターを使用して、ヘッダー内の Webhook に送信されるデータを変更または追加できます。
AmeliaAppointmentBookingCanceledFilterHeaderAmeliaAppointmentBookingAddedFilterHeaderAmeliaAppointmentBookingStatusUpdatedFilterHeaderAmeliaEventBookingCanceledFilterHeaderAmeliaEventBookingAddedFilterHeaderAmeliaEventBookingStatusUpdatedFilterHeaderタイプ: フィルター
例:
function example_callback($headers, $data)
{
return $headers;
}
add_filter('AmeliaAppointmentBookingAddedFilterHeader', 'example_callback', 10, 2);amelia_before_appointment_booking_saved_filter
ユーザーは、予約データがデータベースに保存される前にそれを変更できます。
タイプ: フィルター
例:
function example($booking, $reservation)
{
// 予約を変更する
return $booking;
}
add_filter('amelia_before_appointment_booking_saved_filter', 'example', 10, 2);amelia_before_appointment_booking_saved
予定がデータベースに保存される前に、ユーザーはアクションを実行できます。
タイプ: アクション
例:
function example($booking, $reservation)
{
// アクションを実行する
}
add_action('amelia_before_appointment_booking_saved', 'example', 10, 2);amelia_after_appointment_booking_saved
予定がデータベースに保存された後、ユーザーはアクションを実行できます。
タイプ: アクション
例:
function example($booking, $reservation)
{
// アクションを実行する
}
add_action('amelia_after_appointment_booking_saved', 'example', 10, 2);