Hi. pluggable.php has the function
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ). My contact form gets all this fields ex. `wp_mail($et_email_to, sprintf( ‘[%s] ‘ . esc_html($_POST[‘et_contact_subject’]), $et_site_name ),
‘From: “‘. esc_html($_POST[‘et_contact_name’]) .'” <‘ . esc_html($_POST[‘et_contact_email’]) . ‘ >’);
` I want to add a new field so that i can collect the phone number as well. Any ideas? not willing to use plugins.
- The topic ‘I need to add a new field to my custom form’ is closed to new replies.