wpcf7_skip_mail, how use it?
-
Hi.
After few days of tries we have converted the function we had developed and were running up to cf 3.8.1. An hard work also because there is not documentation (an dexemple) how use the changes that has been introduced from 3.9. Tries -> errors, retries -> errors and so on…but now all is working apart a thing….. wpcf7_skip_mailin our code there was a thing like:
if (condition)
{
$wpcf7->skip_mail = 1;
return $wpcf7;
}
else
{
return $wpcf7;
}now I have this thing… wpcf7_skip_mail but I don’t know how use it.
I’ve found this exemple….but is not clearfunction my_skip_mail($f){
$submission = WPCF7_Submission::get_instance();
if(/* YOUR TEST HERE */){
return true; // DO NOT SEND E-MAIL
}
}
add_filter(‘wpcf7_skip_mail’,’my_skip_mail’);how to port it into our code since I don’t know eher add this filer and so on.
Why complicate things in this way?Any idea?
thankyou
- The topic ‘wpcf7_skip_mail, how use it?’ is closed to new replies.