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
| Property | Type | Description |
|---|---|---|
$action | string | The action name. |
$supports_attempts | bool | Indicates if the task uses an array that supports the attempts key. |
Methods
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$notifications | array | An array containing the IDs of the notifications to be sent. | |
$form | array | The form being processed. | |
$entry | array | The entry being processed. | |
$event | string | 'form_submission' | The event being processed. |
$data | array | [] | 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.12.10.0(Background notifications enabled by default for new installs.)
Source: includes/async/class-gf-notifications-processor.php:137