May I know whether there is a way to create placeholders to be used in email notifications or Google Calendar event description? I am open to adding code snippets on the backend, thus if you can point me to the right direction (e.g. examples, hooks or filters), that will be really helpful.
Unfortunately, the dynamic placeholder keeps returning as the text "Array" in the notification. Below is the example that I have used so far :(
May I know whether there is anything that I have missed out? On the other hand, is there any way to get dynamic information such as appointment ID or customer name into the dynamic placeholder?
function example_callback() {
$pets_name = "- Test -";
return $pets_name;
}
add_filter( 'pets_name', 'example_callback', 10, 1 );
Placeholder used: %amelia_dynamic_placeholder_{pets_name}%
On the other hand, may I know whether the function accepts parameters of the appointment (for example, appointment ID), so I can use it to customise the return value when the dynamic placeholder is inserted into an Appointment Approved email notification?
In regard to your last question. Yes, the function accepts key and value as a PHP array. The keys are "placeholders", while the values are the value with which they will be replaced.
Hope this helps you.
Please let me know if you have any other questions.
Hi there,
May I know whether there is a way to create placeholders to be used in email notifications or Google Calendar event description? I am open to adding code snippets on the backend, thus if you can point me to the right direction (e.g. examples, hooks or filters), that will be really helpful.
Thanks!
Hello Patrick,
We have forwarded your ticket to our Developers and as soon as we get some feedback from them we will contact you immediately.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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 Patrick,
We just got the feedback from our colleagues and they have told us that for custom placeholders you can use this filter:
function example_callback( $data ) { // return the new placeholder return 'custom data'; }
add_filter( 'nameOfPlaceholder', 'example_callback', 10, 1 );
And add the placeholder in email like: %amelia_dynamic_placeholder_{nameOfPlaceholder}%
Hope this helps.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, 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
Awesome! Let me give it a try :)
Hello Patrick,
Glad to hear that.
Looking forward to your update.
Kind Regards,
Uros Jovanovic
[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
Hi Uroš,
Unfortunately, the dynamic placeholder keeps returning as the text "Array" in the notification. Below is the example that I have used so far :(
May I know whether there is anything that I have missed out? On the other hand, is there any way to get dynamic information such as appointment ID or customer name into the dynamic placeholder?
Hello Patrick,
Thank you for the update on this.
I have forwarded this to our developers and will provide you with an update on this as soon as possible.
Thank you for your patience.
Kind Regards,
Uros Jovanovic
[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 Patrick,
The name of the filter needs to start with the:
So, in your case it would be:
Please let me know if that worked for you.
Kind Regards,
Uros Jovanovic
[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
Hi Uroš,
Thanks so much for the update; it works!
On the other hand, may I know whether the function accepts parameters of the appointment (for example, appointment ID), so I can use it to customise the return value when the dynamic placeholder is inserted into an Appointment Approved email notification?
Regards,
Patrick
Hello Patrick,
Glad to hear that it works.
In regard to your last question. Yes, the function accepts key and value as a PHP array. The keys are "placeholders", while the values are the value with which they will be replaced.
Hope this helps you.
Please let me know if you have any other questions.
Kind Regards,
Uros Jovanovic
[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
Thanks so much for your help, Uroš! I would like to confirm that the following snippets are working :D
Hello Patrick,
Yes, that should work, please let me know if it does or does not.
Please let me know if you have any other questions.
Kind Regards,
Uros Jovanovic
[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
Thanks for the follow-up, Uroš! The snippets work and allow me to create placeholders that requires other dynamic data from the database.
You may close this ticket anytime, thanks again for your help!
Hello Patrick,
Glad to be able to assist you.
Please let me know if you have any other questions.
Kind Regards,
Uros Jovanovic
[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
Just wanted to say thanks for this thread. It was very useful.
Hello Stepn,
Glad to hear that you found it useful.
We are here to help
Kind Regards,
Uros Jovanovic
[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