wordpress - Contact Form 7 Plugin Hookup -


i have 2 emial address, depends upon message content deciding emial message should go. using contact form 7. purpose creating plug-in named email filteration. created 1 folder inside plugin folder created php file email-filter.php on have written code due contact form 7 not submitting. code listed below

<?php add_action("wpcf7_before_send_mail", "check_message_type");  function check_message_type($cf7){      $submission = wpcf7_submission::get_instance();     if ( $submission ) {         $submited = array();        $submited['title'] = $wpcf7->title();        $submited['posted_data'] = $submission->get_posted_data();      }     print_r($submited);      /*$array_message=explode(" ",$message);     $words=array("seo", "developer", "web-sites", "web-service", "responsive", "error", "google-analytics", "search-engine", "search engine");     $result=array_intersect(array_map('strtolower',$array_message), array_map('strtolower',$words));     if(empty($result)){     $array_message2=explode(", ",$message);     $result=array_intersect(array_map('strtolower',$array_message2), array_map('strtolower',$words));     }elseif(empty($result)){     $array_message3=explode(",",$message);     $result=array_intersect(array_map('strtolower',$array_message2), array_map('strtolower',$words));     }     return $result;*/ } ?> 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -