WP Travel and WP Travel Pro plugins offer various email templates that are triggered during the booking process, whether they involve payments or not.

With the release of WP Travel v8.4.0, a new feature allows you to disable both booking email and payment email based on your specific needs.

Note: Disabling emails will affect both the admin and customer notifications.

Booking mail received by the Customer and the Admin

Booking mail received by the Customer and the Admin

Booking emails are sent to both the customer and the admin. To disable these emails, you can add the following code to the functions.php file of your child theme:

add_filter( 'wp_travel_send_booking_emails', function(){
	return false;
} );

For guidance on creating a child theme, please refer to our KnowledgeBase.

Payment mail received by the Customer and the Admin

Payment mail received by the Customer and the Admin

Payment emails are also sent to both the customer and the admin. To disable these emails, add the following code to the functions.php file of your child theme:

add_filter( 'wp_travel_send_payment_emails', function(){
	return false;
} );

Again, if you need help with creating a child theme, our KnowledgeBase has detailed instructions.

Customizing Email Templates

If you prefer to modify the default email templates instead of disabling them, you can refer to our detailed guide on how to modify default email templates. This resource provides step-by-step instructions on customizing the email content to better suit your needs.

If you’re interested in learning about the filter hooks used to rename fields on the checkout page, please visit our specific hook page.

Conclusion

By following these steps, you can easily disable booking and payment emails in WP Travel.

Find out what more new features and changes were added in the latest update with our release note.

Check WP Travel documentation to learn more about configurations, modules, payments, shortcodes, and the WP Travel Rest API.

Your feedback helps us improve. Please share your thoughts. Need assistance? Contact our support team or join our Facebook community. Thank you for choosing WP Travel.

Get WP Travel Pro