Okay
  Public Ticket #3024558
Hooks available
Closed

Comments

  • Pierre Biais started the conversation

    Hi guys, 

    Do you have a list of all the php and JS hooks available? 

    Is it possible to have a WP user having both Amelia employee and customer roles so they can autologin to the respective panels? 

  •  1,500
    Uroš replied

    Hello Pierre, 

    Thank you for expressing interest in the Amelia plugin.

    1. Here are the hooks that can be used in Amelia:

    <?php
    function amelia_booking_added_hook($reservation, $bookings, $container) {
    }
    add_action('AmeliaBookingAdded', 'amelia_booking_added_hook', 10, 3);
    function amelia_booking_time_updated_hook($reservation, $bookings, $container) {
    }
    add_action('AmeliaBookingTimeUpdated', 'amelia_booking_time_updated_hook', 10, 3);
    function amelia_booking_status_updated_hook($reservation, $bookings, $container) {
    }
    add_action('AmeliaBookingStatusUpdated', 'amelia_booking_status_updated_hook', 10, 3);
    function amelia_booking_canceled_hook($reservation, $bookings, $container) {
    }
    add_action('AmeliaBookingCanceled', 'amelia_booking_canceled_hook', 10, 3);
    ?>

    2. We do not recommend adding multiple user roles of Amelia to a single user (Amelia Customer and Amelia Employee, for example). Roles have their own capabilities and if you combine them, the plugin will run into a conflict it can't resolve (a paradox, so to speak).

    Hope this helps you.

    Please reach out to us if you have any other questions.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables