Support » Plugin: Flamingo » Skip sending email?

  • I thought this would be simple, but no luck so far.

    I tried both omitting all mail settings (error on save) and enabling demo mode (mail not sent, but message also not saved in Flamingo). I only want submissions saved in the db, not emailed – how do I do that?

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Currently there are no ‘skip_mail’ additional setting (future releases might support). For now, you can use ‘wpcf7_skip_mail’ filter to skip mail, like this:

    add_filter( 'wpcf7_skip_mail', 'mycustom_wpcf7_skip_mail', 10, 2 );
    
    function mycustom_wpcf7_skip_mail( $skip_mail, $contact_form ) {
    	if ( 123 == $contact_form->id() ) {
    		$skip_mail = true;
    	}
    
    	return $skip_mail;
    }

    Change the ‘123’ to the actual contact form ID.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.