June 4, 2019
Prevent Contact Form 7 (CF7) From Sending Email
Put it in your theme’s functions.php and update the form id (999999) to your CF7’s form ID.
// skip sending cf7 email add_filter( 'wpcf7_skip_mail', 'mycustom_wpcf7_skip_mail', 10, 2 ); function mycustom_wpcf7_skip_mail( $skip_mail, $contact_form ) { if ( 999999 == $contact_form->id() ) { $skip_mail = true; } return $skip_mail; }