• Hi,

    I’m trying to save the values of the forms to a database through a plugin but I cannot access the values of the posted data.
    I added this to my plugin but it does not work at all. Any ideas ?

    add_action( ‘wpcf7_before_send_mail’, ‘process_contact_form_data’ );
    function process_contact_form_data(){
    var_dump($contact_data->posted_data);
    $name = $contact_data->posted_data[“your-name”];
    $email = $contact_data->posted_data[“your-email”];
    return $email;
    }

    Any help would be awesome.

    Bart

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘get posted data’ is closed to new replies.