Skip to main content

Filter: gform_notification_email_header

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. rgar($entry, 'form_id')
  2. rgar($notification, 'id')

Example hook names:

  • gform_notification_email_header (base hook)
  • gform_notification_email_header_1 (with first modifier value)
  • gform_notification_email_header_1_2 (with all modifier values)

Filters the notification email source header value.

Parameters

NameTypeDescription
$headerstringThe source header value. Defaults to site={site_url}, if the GF_ENABLE_NOTIFICATION_EMAIL_HEADER constant is used.
$notificationarrayThe current notification object.
$entryarrayThe current entry object.

Since

Source

Defined in common.php at line 2422