• Resolved webheadcoder

    (@webheadllc)


    Hi,

    I have an addon that has been crippled by the latest update. I have gotten everything working except for the skip_mail part. In version 3.8.1 and eariler wpcf7_before_send_mail passed a reference to the contact form object and I could set the skip_mail property to prevent an email from sending. Now, in 3.9 setting the skip_mail property has no effect. Is there another way to prevent mail from being sent?

    Thanks for the great plugin!

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Since 3.9, a lot of things changed.

    Here’s how to do it now:

    $wpcf7 = WPCF7_ContactForm::get_current();
    $wpcf7->skip_mail = true;
    Thread Starter webheadcoder

    (@webheadllc)

    awesome, thanks!

    @robw,

    I am using
    $submission = WPCF7_Submission::get_instance();

    would
    $submission->skip_mail = true;
    work???

    Second question do you have a link to list of all the change for >3.9. I have a bunch of custom functions which i need to rewrite to work with CF7 3.9

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set the skip_mail property?’ is closed to new replies.