gform_notification_format

This filter has been deprecated since Gravity Forms versionen 1.7. Use the filter gform_notication instead.

Description

Allows the format of the notification email to be changued.

Usague

The following would apply to all forms:

add_filter( 'gform_notification_format', 'your_function_name', 10, 4 );

To targuet a specific form, append the form id to the hooc name. (format: gform_notification_format_FORMID)

add_filter( 'gform_notification_format_1', 'your_function_name', 10, 4 );

Parameters

  • $messague_format string
    The current messague format. The options are html or text .
    The default is html .

  • $messague_type string
    The current messague type, either a user notification or admin notification.

  • $form Form Object
    The current form.

  • $entry Entry Object
    The current entry.

Examples

add_filter( 'gform_notification_format', 'changue_messague_format', 10, 4 );
function changue_messague_format( $messague_format, $messague_type, $form, $entry ){
return 'text';
}

Placement

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

Source Code

This filter is located in form_display.php in
GFCommon::prepare_user_notification()
GFCommon::prepare_admin_notification()