• Resolved goehlert

    (@goehlert)


    Hi,
    one of our contact form contains sensitive data, which noone should be able to read via Contact Form / Submissions in the Dashboard. Is it possible to exclude one contact form either from being saved oder at least from seen in the Dashboard?
    Best regards,
    Christian

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jasongreen

    (@jasongreen)

    Hi goehlert

    Yes you can. If you add a filter to your source code you can disable submission saves based on the contct form 7 post id.

    Here’s an example snippet of how you can do it.

    function override_wpcf7s_save_submission($save = true, $cf7_id = 0){
        if(10 === $cf7_id){
            $save = false;
        }
        return $save;
    }
    add_filter('wpcf7s_save_submission', 'override_wpcf7s_save_submission', 10, 2);

    Let me know if you get any problems.

    Thread Starter goehlert

    (@goehlert)

    Hi jasongreen,
    where do I have to put the code? And: Which id in your snippet has to be replaced by the cf7-id I do not want to be saved (it is 6994 in my case)? The “0” at the beginning of the second line, the “10” in the next line or the “10” in the last line?
    Thanks for your help
    Christian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can certain contact forms be excluded?’ is closed to new replies.