Using Gravity Forms ‘gform_helpscout_process_body_shortcodes’ PHP filter

The gform_helpscout_process_body_shortcodes filter in Gravity Forms is used to enable shortcode processing in the Help Scout message body.


To apply the filter to all forms:

add_filter('gform_helpscout_process_body_shortcodes', 'your_function_name', 10, 3);

To apply the filter to a specific form:

add_filter('gform_helpscout_process_body_shortcodes_4', 'your_function_name', 10, 3);


  • $process_shortcodes (boolean) – Determines if shortcode processing is enabled. Default is false.
  • $form (Form Object) – The current form object.
  • $feed (Feed Object) – The current feed object.

More information

See Gravity Forms Docs: gform_helpscout_process_body_shortcodes


Enable shortcode processing for all forms

This example enables shortcode processing for all forms.

add_filter('gform_helpscout_process_body_shortcodes', '__return_true');

Enable shortcode processing for a specific feed name

This example enables shortcode processing for a specific feed named ‘Help Scout Feed 1’.

add_filter('gform_helpscout_process_body_shortcodes', function($process_shortcodes, $form, $feed) {
    return rgars($feed, 'meta/feed_name') == 'Help Scout Feed 1' ? true : $process_shortcodes;
}, 10, 3);

Placement: This code should be placed in the functions.php file of your active theme.

Source Code: This filter is located in GFHelpScout::process_feed() in class-gf-helpscout.php.

Since: This filter was added in Help Scout 1.1.1.