I kind of found a work around myself, it was a multiple part thing. First I added `
add_filter('gform_submit_button', 'do_shortcode');
to functions.php to allow shortcodes in the submission button to work properly.
Then to allow shortcode processing in the notification email I had to use:
add_filter('gform_pre_submission_filter', 'change_notification');
function change_notification($form){
$form['notification']['subject'] = do_shortcode($form['notification']['subject']);
}
I probably could have just did
$form['notification']= do_shortcode($form['notification']);
to process all the shortcodes present in the notification but I only needed the subject shortcode processed.
Hope this helps others.
Posted 11 years ago on Tuesday January 29, 2013 |
Permalink