Hey everyone!
With the holiday season upon us, we want to share our upcoming working hours:
- New Year: Our team will be off on January 1st and 2nd. We’ll be back on Friday, January 3rd, to respond to any messages received during this time.
- Weekend: As usual, we don’t work on weekends, so January 4th and 5th will also be non-working days.
- Orthodox Christmas: Our office will be closed on Monday and Tuesday, January 6th and 7th for the holiday.
After that, we’ll return to our regular schedule and assist you as quickly as possible.
In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.
Thanks a bunch for your understanding and support!
Warm regards and happy holidays!
TMS
Hello,
We are using Amelia plugin (Wordpress) for appointment purposes, where users can book an appointment with doctors.
Our initial requirement is to re-direct the user to a thankyou page after submitting an appointment and NOT to the checkout page.
I'm using the hooks from https://wpamelia.com/wp-hooks-appointments/.
I created a custom plugin with the below code:
// Test Amelia hook by logging output
function amelia_hook() {
error_log('Amelia hook triggered');
die('Amelia hook triggered');
}
add_action('amelia_before_appointment_added', 'amelia_hook');
but nothing happens. am i doing something wrong here?
Hello Rami,
Thanks for reaching out to us. The issue here is the "DIE" part in hook, this part will stop the code from executing. There is the hook
function amelia_hook() {
error_log('Amelia hook triggered');
die('Amelia hook triggered');
}
add_action('amelia_before_appointment_added', 'amelia_hook');
function my_custom_function($appointmentData) {
error_log('Amelia hook triggered');
die('Amelia hook triggered');
}
add_action('amelia_before_booking_added', 'my_custom_function');
amelia_before_appointment_added is for the backend booking
amelia_before_booking_added is for frontend booking
When using "die" part, the code wont execute and the appointment wont be stored.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hello Stefan,
Thank you so much for replying. I used the die function just to make sure my custom function is being triggered.
I'll amend the code a bit according to your recommendation and test.
Thank you again,
You are welcome, Rami.
I'm glad that we can help.
Should you have any other questions or issues, feel free to reach out to us and we will kindly provide assistance.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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