Skip to main content

Gravity_Forms\Gravity_Forms\Async\GF_Notifications_Processor

GF_Notifications_Processor Class.

Since: 2.6.9

Source: includes/async/class-gf-notifications-processor.php:21

Details​

  • Kind: class
  • Namespace: Gravity_Forms\Gravity_Forms\Async
  • Extends: GF_Background_Process

Properties​

PropertyTypeDescription
$actionstringThe action name.
$supports_attemptsboolIndicates if the task uses an array that supports the attempts key.

Methods​

MethodDescription
is_enabled()Determines if async (background) processing of notifications is enabled.

Method Reference​

is_enabled()​

public function is_enabled( $notifications, $form, $entry, $event='form_submission', $data=[] )

Determines if async (background) processing of notifications is enabled.

Parameters​

NameTypeDefaultDescription
$notificationsarrayAn array containing the IDs of the notifications to be sent.
$formarrayThe form being processed.
$entryarrayThe entry being processed.
$eventstring'form_submission'The event being processed.
$dataarray[]An array of data which can be used in the notifications via the generic {object:property} merge tag. Defaults to empty array.

Returns​

  • bool

Since:

  • 2.7.1
  • 2.10.0 (Background notifications enabled by default for new installs.)

Source: includes/async/class-gf-notifications-processor.php:137