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.