U
Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor
function handle_request_demo_form_submission(){if ( isset( $_POST['requestDemo'] ) && $_POST['requestDemo'] == 'yes' ){// Send the email using WordPress's wp_mail function
$to = 'Email 2';
$subject = 'Request Demo Form Submission';
$body = 'A user has submitted the Request Demo form on your site.';
wp_mail( $to, $subject, $body );
}
}
add_action( 'elementor_pro/forms/handle_form_submission/RequestDemo', 'handle_request_demo_form_submission' );