• Resolved Louis

    (@louisgan)


    Hi team,

    Would you able to add a new action hook during the “Add Booking” flow to detect whether a new customer is created. Otherwise, a property in the existing $result->getData() below would also suffice.

    The existing hook does not expose whether a new customer account is created.

    do_action('amelia_after_booking_added', $result ? $result->getData() : null);

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support stefanpetrov

    (@stefanpetrov)

    Hello Louis,
    Thanks for reaching out to us, i hope you are doing well.

    amelia_after_booking_added only passes the appointment/booking data (the same object returned by $result->getData()), and it does not include any indicator of whether a new customer account was created during that flow. There is currently no property in that payload, and no dedicated hook fired during the Add Booking flow, that exposes “new vs. existing customer.”

    Feel free to suggest this on our feature suggestion page – https://features.wpamelia.com/new-post.

    You can certainly follow our changeLog page if you’d like, where we state any changes/new features/bug fixes during updates and our newsletter, so you’re informed about new features, bug fixes, freebies, etc.

    Kind regards,
    Stefan.

    Thread Starter Louis

    (@louisgan)

    Ok, have added to the feature suggestion page. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.