gform_helpscout_process_note_shortcodes

Description

The “gform_helpscout_process_note_shortcodes” filter in the Help Scout Add-On for Gravity Forms indicates whether shortcodes should be processed in the notes.

Usage

The following would apply to all forms:

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

To target a specific form, append the form id to the hook name. (format: gform_helpscout_process_note_shortcodes_FORMID)

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

Parameters

  • $process_shortcodes bool

    Indicates if notes should be processed for shortcodes.

  • $form Form Object

    The form object.

  • $feed Feed Object

    The feed object.

Examples

add_filter( 'gform_helpscout_process_note_shortcodes', 'process_note_sc', 10, 3 );
function process_note_sc( $process_shortcodes, $form, $feed ){
	return false;
}

Placement

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

Since

This filter was added in Help Scout version 1.5.

Source Code

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