wpcf7->skip_mail = true not working
-
Hello,
I am using following code
add_action( ‘wpcf7_before_send_mail’, ‘my_posted_data’,99 );
function my_posted_data( $contact_form ) {
$title = $contact_form->title;
$wpcf7 = WPCF7_ContactForm::get_current();
if ( some condition )
wpcf7->skip_mail = true;
return wpcf7;
}Here even if the if condition is true the mail is not getting skipped.
This problem is occuring from the time I have updated my contact form 7 plugin to version 4.9
Please Help me with this!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wpcf7->skip_mail = true not working’ is closed to new replies.