Hi,
I’m a little confused about how to amend my front end form code, to send an email to one or possibly more people when the form has been submitted.
The form is only for those who are logged into the website. The form also creates a new (custom post type) post and saves as ‘pending’ status for admin to approve.
<?php
$options = array(
'id' => 'acf-form-kb-article',
'honeypot' => true,
'post_title' => true,
'post_content' => true,
'field_groups' => array(174),
//'return' => $siteurl . '/question-submitted/',
'return' => $returnurl,
'comment_status' => 'open',
'updated_message' => __('Question submitted', 'iexpe'),
'post_id' => 'new_post',
'honeypot' => true,
'new_post' => array(
'post_type' => 'knowledgebase',
'post_status' => 'pending'
),
'submit_value' => __('Ask the Question!', 'iexpe')
);
acf_form( $options );
Any help would be much appreciated.
So I can leave my code alone, but then add the code you’ve linked too (one of them, not both!), within my functions.php file – is that correct?
Thanks for the reply, I really appreciate it.