Skip to main content

Filter: gform_is_asynchronous_notifications_enabled

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id

Example hook names:

  • gform_is_asynchronous_notifications_enabled (base hook)
  • gform_is_asynchronous_notifications_enabled_1 (with first modifier value)

Allows async (background) processing of notifications to be enabled or disabled.

Parameters

NameTypeDescription
$is_enabledboolIs async (background) processing of notifications enabled? Defaults to the value of the gform_enable_async_notifications option.
$eventstringThe event the notifications are to be sent for.
$notificationsarrayAn array containing the IDs of the notifications to be sent.
$formarrayThe form currently being processed.
$entryarrayThe entry currently being processed.
$dataarrayAn array of data which can be used in the notifications via the generic {object:property} merge tag. Defaults to empty array.

Since

  • 2.6.9
  • 2.10.0: Updated to use the gform_enable_async_notifications option value as the default.

Source

Defined in includes/async/class-gf-notifications-processor.php at line 154