MENU

料金プラン

機能一覧

デモ

ご利用の流れ

お役立ちコラム



Googleカレンダー

操作ガイド

Amelia WPフック – Googleカレンダー

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

認証URLの取得

amelia_get_google_calendar_auth_url_filter

お客様は、このフィルターを使用して、スタッフがGoogleカレンダーに接続するための認証URLを変更できます。

タイプ: フィルター

例:

function example($authUrl, $employeeId) { 
    return $authUrl; 
}
add_filter('amelia_get_google_calendar_auth_url_filter', 'example', 10, 2);

amelia_get_google_calendar_auth_url

お客様は、スタッフがGoogleカレンダーに接続するための認証URLが返される前にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($authUrl, $employeeId) { 
    // アクションを実行 
}
add_action('amelia_get_google_calendar_auth_url', 'example', 10, 2);

Googleカレンダーが追加されました

amelia_before_google_calendar_added_filter

お客様は、このフィルターを使用して、Googleカレンダーオブジェクトがデータベースに保存される前(認証成功後)に変更できます。

タイプ: フィルター

例:

function example($accessToken, $employeeId) { 
    return $accessToken; 
}
add_filter('amelia_before_google_calendar_added_filter', 'example', 10, 2);

amelia_before_google_calendar_added

お客様は、Googleカレンダーがデータベースに保存される前(認証成功後)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($googleCalendar, $employeeId) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_added', 'example', 10, 2);

amelia_after_google_calendar_added

お客様は、Googleカレンダーがデータベースに保存された後(認証成功後)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($googleCalendar, $employeeId) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_added', 'example', 10, 2);

Googleカレンダーが削除されました

amelia_before_google_calendar_deleted

お客様は、Googleカレンダーがデータベースから削除される前(スタッフがアカウントから切断したとき)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($googleCalendar, $employeeId) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_deleted', 'example', 10, 2);

amelia_after_google_calendar_deleted

お客様は、Googleカレンダーがデータベースから削除された後(スタッフがアカウントから切断したとき)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($googleCalendar, $employeeId) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_deleted', 'example', 10, 2);

イベントが追加されました

amelia_before_google_calendar_event_added_filter

お客様は、このフィルターを使用して、イベントがGoogleカレンダーに挿入される前のイベントデータを変更できます。

タイプ: フィルター

例:

function example($event, $appointment, $provider) { 
    return $event; 
}
add_filter('amelia_before_google_calendar_event_added_filter', 'example', 10, 3);

amelia_before_google_calendar_event_added

お客様は、イベントがGoogleカレンダーに挿入される前にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_event_added', 'example', 10, 3);

amelia_after_google_calendar_event_added

お客様は、イベントがGoogleカレンダーに挿入された後にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_event_added', 'example', 10, 3);

イベントが更新されました

amelia_before_google_calendar_event_updated_filter

お客様は、このフィルターを使用して、イベントがGoogleカレンダーに更新される前のイベントデータを変更できます。

タイプ: フィルター

例:

function example($event, $appointment, $provider) { 
    return $event; 
}
add_filter('amelia_before_google_calendar_event_updated_filter', 'example', 10, 3);

amelia_before_google_calendar_event_updated

お客様は、イベントがGoogleカレンダーに更新される前にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_event_updated', 'example', 10, 3);

amelia_after_google_calendar_event_updated

お客様は、イベントがGoogleカレンダーに更新された後にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_event_updated', 'example', 10, 3);

イベントがパッチされました

amelia_before_google_calendar_event_patched_filter

お客様は、このフィルターを使用して、イベントがGoogleカレンダーにパッチされる前(予約の追加またはキャンセル)のイベントデータを変更できます。

タイプ: フィルター

例:

function example($event, $appointment, $provider) { 
    return $event; 
}
add_filter('amelia_before_google_calendar_event_patched_filter', 'example', 10, 3);

amelia_before_google_calendar_event_patched

お客様は、イベントがGoogleカレンダーにパッチされる前(予約の追加またはキャンセル)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_event_patched', 'example', 10, 3);

amelia_after_google_calendar_event_patched

お客様は、イベントがGoogleカレンダーにパッチされた後(予約の追加またはキャンセル)にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($event, $appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_event_patched', 'example', 10, 3);

イベントが削除されました

amelia_before_google_calendar_event_deleted

お客様は、イベントがGoogleカレンダーから削除される前にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_before_google_calendar_event_deleted', 'example', 10, 2);

amelia_after_google_calendar_event_deleted

お客様は、イベントがGoogleカレンダーから削除された後にアクションを実行するためにこのフックを使用できます。

タイプ: アクション

例:

function example($appointment, $provider) { 
    // アクションを実行 
}
add_action('amelia_after_google_calendar_event_deleted', 'example', 10, 2);