How to programmatically customise the Contact Form7 notification email prior to sending? [closed]
This can be achieved by hooking into the process of the notification mail being sent by the CF7 plugin. The plugin provides the ‘wpcf7_mail_components’ filter which allows you to modify the email message prior to it being sent, add_filter(‘wpcf7_mail_components’,’add_mgr_mail’,10,3); function add_mgr_mail($components, $form, $mail_obj){ //if you have several cf7 forms, check this is the right one, … Read more