Hi,
Marking as clarified. You can reach us if you need more assistance.
Best Regards.
Thread Starter
Ced
(@cedriccharles)
Hello there,
I still need assistance. The documentation given says nothing about translating emails…
Kind regards,
Cedric
Hi Cedric,
Unfortunately, we only support 1 language at the same time:
We still only support one language at a time. WMPL contributed some code to the free version of Awesome Support to help things work better with their plugin for some custom scenarios that they were encountering with some of their paid customers. I don’t think that helped with the emails in multiple languages though.
Thanks.
Thread Starter
Ced
(@cedriccharles)
Hi @yeisonbp
Thank you for your answer!
Today, multilingual sites have become the norm. I really think you should add compatibility with the main 2-3 multilingual plugins.
As I’m a developer myself, could you maybe tell me if there is a filter/hook in your plugin that I can use to alter the content of an email before it’s been sent? This way, I can detect the language and change the content of the email depending on the language.
Kind regards,
Cedric
Hi Cedric,
Here are some filters, which you can use to hook into email data and add your changes
wpas__user_email_notifications_subject
wpas__user_email_notifications_body
wpas__user_email_notification_body_before_template
wpas__user_email_notification_body_after_template
wpas_email_notifications_subject
wpas_email_notifications_body
wpas_email_notifications_notify_user
wpas_email_notification_body_before_template
wpas_email_notification_body_after_template
You can get more detail about these filter at : https://developer.getawesomesupport.com/documentation/hooks-and-filters/wpas_email_notifications_email/
And below is an example about how to use the filter "wpas_email_notifications_subject" to change the subject of email when an Agent replied the ticket
//Filter email notification subject.
add_filter( 'wpas_email_notifications_subject', 'hookted_wpas_email_notifications_subject', 10, 3 );
function hookted_wpas_email_notifications_subject( $subject, $post_id, $case )
{
if($case == 'agent_reply' )
{
$subject = str_replace("New reply to","This is replace text", $subject);
}
return $subject;
}