function send_custom_emails_on_tour_booking($booking_id) { // Get booking details $booking = STBooking::find($booking_id); // Define recipients $recipients = ['[email protected]', '[email protected]']; // Email subject $subject = 'New Tour Booking'; // Email message $message = sprintf( "A new tour has been booked.\n\nBooking ID: %d\nTour Name: %s\nCustomer Name: %s\nCustomer Email: %s\n", $booking->ID, get_the_title($booking->tour_id), $booking->customer_name, $booking->customer_email ); // Headers $headers = ['Content-Type: text/plain; charset=UTF-8']; // Send email to each recipient foreach ($recipients as $recipient) { wp_mail($recipient, $subject, $message, $headers); } } // Hook into the booking process add_action('st_after_booking_created', 'send_custom_emails_on_tour_booking');
Daily Tour
100 people
English, French
Visit to Agadir – 3 hours
Start your day with a 3-hour visit to Agadir. Explore this vibrant coastal city, visit the bustling markets, enjoy the beautiful beaches, or take a stroll along the scenic promenade.
Evening at Chems Ayour
Spend your evening at Chems Ayour. Enjoy a delightful dinner, experience local music and dance, and soak in the warm and welcoming atmosphere of this charming venue.
4×4 Adventure in Massa
The next day, embark on an exhilarating 4×4 adventure in Massa. Discover the diverse landscapes, from desert dunes to lush valleys, as you navigate through this picturesque region.
Massage – 2 hours
Conclude your day with a relaxing 2-hour massage. Unwind and rejuvenate your body and mind after a day full of exploration and adventure.
zaodnf