MENU

料金プラン

機能一覧

デモ

ご利用の流れ

お役立ちコラム



時間枠

操作ガイド

Amelia WPフック – 時間枠

フックの使用には一定レベルのプログラミングスキルが必要であり、プラグインで提供されるサポートには含まれていません。

時間枠の取得

amelia_before_get_timeslots_filter

ユーザーは、このフィルターを使用して、時間枠を取得するために使用されるプロパティを変更できます。

タイプ: フィルター

例:

function example($props) {
    // プロパティを変更
    return $props;
}
add_filter('amelia_before_get_timeslots_filter', 'example', 10, 1);

amelia_before_get_timeslots

ユーザーは、時間枠が計算される前にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($props) {
    // アクションを実行
}
add_action('amelia_before_get_timeslots', 'example', 10, 1);

amelia_get_timeslots_filter

ユーザーは、このフィルターを使用して、取得された時間枠を変更できます。

タイプ: フィルター

例:

function example($resultData, $props) {
    // データを変更
    return $resultData;
}
add_filter('amelia_get_timeslots_filter', 'example', 10, 2);

amelia_get_timeslots

ユーザーは、時間枠が計算された後にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($resultData, $props) {
    // アクションを実行
}
add_action('amelia_get_timeslots', 'example', 10, 2);