I have a plugin I am writing that I want to interact with Contact Form 7. In my plugin I added the following action add_action
add_action(\"wpcf7_before_send
I'd like to add that you could just use the wpcf7_skip_mail filter:
wpcf7_skip_mail
add_filter( 'wpcf7_skip_mail', 'maybe_skip_mail' ); function maybe_skip_mail( $skip_mail, $contact_form ) { if( /* your condition */ ) $skip_mail = true; return $skip_mail; }, 10, 2 );