Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // http://www.gravityhelp.com/forums/topic/add-text-to-specific-form-notification-emails
- add_filter('gform_pre_submission_filter', 'brad_prepend_text');
- function brad_prepend_text($form) {
- // array of form IDs where we want to modify the autoresponder. Use your form IDs here
- $form_ids = array (1,17,4,5);
- // if our form is not in the array, just return
- if (!in_array($form['id'], $form_ids)) {
- return $form;
- }
- // add your message to the beginning of the autoresponder
- $form['autoResponder']['message'] = '<p>Thank you for contacting WebDevStudios. We love you!</p>' . $form['autoResponder']['message'];
- // return the modified form object
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement