[Plugin: Contact Form 7] hook wpcf7_before_send_mail doesnt work
-
Hi, i’m beginner, I really need help. I’m using contact form 7 4.4.2, I need to get all information that were submit and store it into database.
but when I try to hook wpcf7_before_send_mail in functions.php in my child-theme to get data from form, when click on submit button the arrow spinning is looping all over again, I successully received email.
when I delete this function, nothing happens and works fine.add_action(‘wpcf7_before_send_mail’, ‘save_form’ );
function save_form( $wpcf7 ) {
//I don’t think this function even called.
$submission = WPCF7_Submission::get_instance();if ( $submission ) {
$submited = array();
$submited[‘title’] = $wpcf7->title();
$submited[‘posted_data’] = $submission->get_posted_data();}
}
- The topic ‘[Plugin: Contact Form 7] hook wpcf7_before_send_mail doesnt work’ is closed to new replies.