false));
if (isset($uploaded[‘file’])) {
$attachments[] = $uploaded[‘file’];
}
}
// Send email
if (wp_mail($to, $subject, $body, $headers, $attachments)) {
echo ‘
✅ Thank you! Your quote request has been sent successfully. We’ll be in touch soon.
‘; } else { echo ‘❌ Sorry, there was a problem sending your request. Please try again later.
‘; } } return ob_get_clean(); } add_shortcode(‘event_quote_form’, ‘event_quote_form_shortcode’);