• Resolved pixelzoo

    (@pixelzoo)


    Hi
    I have a couple of forms I don’t need ACF7DB to save to the database, I followed the FAQ answers and added this to my theme’s function.php.

    add_filter('vsz_cf7_unwanted_form_data_submission','vsz_restrict_form_data_submission');
    function vsz_restrict_form_data_submission($contact_form_ids){
    $contact_form_ids[] = ['{137}','{1309}'];
    return $contact_form_ids;
    }

    I added the form id that I didn’t want to save.
    But am still getting form data saved to the database on these two forms.

    Please Advise
    ??

Viewing 1 replies (of 1 total)
  • Plugin Author Vsourz Digital

    (@vsourz1td)

    Hello @pixelzoo,

    Sorry for the late response.

    The actual code is as below.

    add_filter('vsz_cf7_unwanted_form_data_submission','vsz_restrict_form_data_submission');
    function vsz_restrict_form_data_submission($contact_form_ids){
    $contact_form_ids = array('137','1309');
    return $contact_form_ids;
    }

    If still you have any issue, kindly let us know.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Help with not saving to the database’ is closed to new replies.