Push Contact form 7 variable to front end after submission

I have a contact form 7 form that’s sending information to an API. I want to display the API response on the front end. there are 2 ways to go about solving this type of problem, 1- Use the CF7 plugin’s message response hook, add_filter(‘wpcf7_display_message’, ‘my_response_msg’,10,2); function my_response_msg($message, $status){ if(‘mail_sent_ok’==$status){ $form = wpcf7_get_current_contact_form(); //in case … Read more

Add Line Break/Remove Commas for Checkbox options sent via Email from Contact Form 7 [closed]

yes, this is possible using the CF7 ‘wpcf7_mail_tag_replaced’ filter, add_filter(‘wpcf7_mail_tag_replaced’, ‘format_chackbox’,10,4); function format_chackbox($replaced, $submitted, $is_html, $mail_tag){ //you can check if this is the right field if need be. if(‘my-checkbox-field’ != $mail_tag->field_name()) return $replaced; //$submitted contains the raw submitted data. //$replaced is the formatted data, you can use either. $a = explode(‘,’, $replaced); //check if you … Read more