gform_post_resend_notification

Description

The gform_post_resend_notification action allows developers to execute custom code after a notification is resent

Usage

add_action( 'gform_post_resend_notification', 'my_custom_function', 10, 3 );

Parameters

ParameterTypeDescription
$notificationarrayThe current notification object.
$formarrayThe current form object.
$entryarrayThe current entry object.

Examples

Log the resend event.

This example logs details about the resent notification.

add_action( 'gform_post_resend_notification', 'log_resend_notification', 10, 3 );
function log_resend_notification( $notification, $form, $entry ) {
    GFCommon::log_debug( __METHOD__ . "(): Notification {$notification['name']} (ID: {$notification['id']}) resent for Form {$form['id']}, Entry {$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 version 2.3

Source Code

This action is defined in gravityforms.php