Send email after submitting comment
add_filter(‘frm_add_entry_meta’, ‘custom_change_field_value’); function custom_change_field_value($new_values){ if($new_values[‘field_id’] == 0){ //0 indicates this is a comment $subject = ‘New comment‘; //change email subject here $send_to = array(‘[email protected]’, ‘[email protected]‘); //set email addresses here $info = maybe_unserialize($new_values[‘meta_value’]); $message = $info[‘comment’]; foreach($send_to as $to) wp_mail($to, $subject,…Continue reading