?> </p> </div> </div> <div class="form-group"> <label class="col-lg-3 control-label">Attende Name</label> <div class="col-lg-9"> <p class="form-control-static"><?php echo $entry->parent_name; ?> (<?php echo $entry->email; ?> ) <a href="<?php echo wbsf_edit_url('wbsf_token=' . $wbsf_token . '&wbsf_entry_mode=confirm&form_type=' . $form_type); ?> ">Edit</a></p> </div> </div> <h4 class="wbsf_form_fieldset_title">Additional Details:</h4> <div class="form-group"> <label class="col-lg-3 control-label">Number of Children</label> <div class="col-lg-9"> <p class="form-control-static"><?php echo count(unserialize($entry->children)); ?> </p> </div> </div> <div class="form-group">
function wbsf_mail_user($form_type, $entry_id) { $entry = wbsf_get_entry($form_type, $entry_id); $wbsf_token = $entry->token; $to = $entry->email; $admin = wbsf_options('email'); if (!$admin) { $admin = get_option('admin_email'); } $form = wbsf_get_form($entry->fid); $subject = "Registered on " . $form->form_title; $edit_url = wbsf_edit_url('wbsf_token=' . $wbsf_token . '&wbsf_entry_mode=confirm&form_type=' . $form_type); $message = ' <p>***This is an automated response - Do Not Reply***</p> <p>Hi ' . $entry->parent_name . ',</p> <p>Thank you for registering for ' . $form->form_title . '.</p> <p>Your Registration ID: <strong>' . $entry->token . '</strong></p> <p>We hope that you will find this event both informative and enjoyable. Should you have any questions, please contact ' . $admin . '.</p> <p><a href="' . $edit_url . '" target="_blank">Edit Registration Details</a></p> <p> </p> <p>Thank You.</p>'; add_filter('wp_mail_content_type', 'wbsf_set_html_content_type'); wp_mail($to, $subject, $message); remove_filter('wp_mail_content_type', 'wbsf_set_html_content_type'); }