=== Hotel Booking Email Attachments ===
Contributors: motopress
Tags: hotel booking, email, attachment, files, wpml
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Attach accommodation-specific and global files to MotoPress Hotel Booking emails.

== Description ==

Hotel Booking Email Attachments is an add-on for MotoPress Hotel Booking.

Create reusable Email Attachment posts from the Hotel Booking admin menu, assign one media-library file to each post, and then select multiple attachment posts per Accommodation Type. Files attached to the booked accommodation types are added automatically to the confirmed customer booking email. You can also insert generated tags like %email_attachments:welcome-pack% into any Hotel Booking email template to add a global/common file by tag key.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate MotoPress Hotel Booking.
3. Activate Hotel Booking Email Attachments.
4. Create one or more Email Attachment posts from the Hotel Booking admin menu and select files from the Media Library.
5. Edit an Accommodation Type and select the attachment posts in the "Email Attachments" metabox.
6. Enter your license key in the Hotel Booking settings to enable automatic updates and support.

== Frequently Asked Questions ==

= Which email gets attachments automatically? =

Accommodation-linked attachments are added automatically only to the confirmed customer booking email.

= Can I attach a common file to other emails? =

Yes. Use the attachment's Email Tag key in an email tag like %email_attachments:welcome-pack%.

= What happens if a booking contains multiple accommodation types or repeated files? =

All unique valid files assigned to those accommodation types are attached only once.

= Where do I enter the license key? =

Open the Hotel Booking settings, choose the Email Attachments extension settings, and enter your license key in the License section.

== Changelog ==

= 1.0.0 =

* First stable release.
