Are you ready to customize email templates for download email?

WP Travel plugin provides an option to send the download attachments of the trip to a designated email address.

By selecting the “Want to send trip information to others?” option and providing the required email address under the Downloads tab, the website owner can send the download attachments to the specified recipients.

download attachments to the specified recipients for downloading Email.

With the release of WP Travel v8.4.0 and WP Travel Pro v7.4.0 , you can now customize the email template for download email.

Default email received by the client

Default email received by the client. How to customize Email Templates for the Download Email

So, to change the email content, please add the following code to the functions.php file of your child theme or simply you can add it through code snippets.

function wptravel_change_download_attachment_mail_content( $body, $trip_url, $trip_info, $downloadable_link ) {
    return "Hello,<br><br>You have received NEW CUSTOMIZE  <a href='{$trip_url}'>{$trip_info}</a> attachments INFORMATIONS. Please find the attachment link below. <br>" . $downloadable_link . "<br>Thank You";
add_filter( 'wptravel_download_attachment_mail_content', 'wptravel_change_download_attachment_mail_content', 10, 4 );

If you need more information on creating a child theme, please check out our Knowledgebase.

Customized email received by the client

Customized email received by the client for How to Customize Email Templates for the Download Email?

Hook to change the Subject of Download Email

function wptravel_change_download_attachment_mail_subject( $subject, $trip_info ) {
    return  $trip_info . 'New Email Subject';
add_filter( 'wptravel_download_attachment_mail_subject', 'wptravel_change_download_attachment_mail_subject', 10, 4 );

Additionally, if you want to learn more about the filter hook associated with email available in the WP Travel plugin, refer to the hook page.

Also, if you liked this article, then subscribing to our YouTube Channel for WordPress video tutorials would be the cherry on top. 

You can also find us on FacebookInstagram, Twitter, LinkedinTikTokPinterest, and our dedicated, engaging Facebook user community.

Further, if you have any queries, please submit them to our Contact page.

You can get WP Travel Pro to start creating your travel and tour booking website within minutes without any hassle of coding.

Get WP Travel Pro