gform_post_resend_all_notifications

Description

The gform_post_resend_all_notifications action hook allows developers to execute custom code after the resend notifications processing is finished for a specific form entry.

Usage

add_action( 'gform_post_resend_all_notifications', 'your_function_name', 10, 2 );

Parameters

ParameterTypeDescription
$formarrayThe current form object, which includes form settings, fields, and other form-related data.
$entryarrayThe current entry object, containing the submitted form data.

Examples

Log Notification Resend Event.

This example shows how to log a message when the resend notifications process is complete.

add_action( 'gform_post_resend_all_notifications', 'log_notification_resend', 10, 2 );

function log_notification_resend( $form, $entry ) {
    GFCommon::log_debug( 'gform_post_resend_all_notifications: Notifications resent for Form ID ' . $form['id'] . ', Entry ID ' . $entry['id'] );
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Since

This action was added in Gravity Forms 2.3

Source Code

This action is located in gravityforms.php