Description
The gform_post_send_entry_note action is triggered after an entry note is emailed, allowing further actions to be performed.
Usage
add_action( 'gform_post_send_entry_note', 'my_function', 10, 7 );
Parameters
| Parameter | Type | Description |
|---|---|---|
$result | string | The success or failure message, based on if the email was sent successfully or not. |
$email_to | string | The address that the email was sent to. |
$email_from | string | The email address that the email was sent from. |
$email_subject | string | The subject of the email sent. |
$body | Mixed | The body of the email sent. |
$form | Form Object | The current form object. |
$entry | Entry Object | The current entry object. |
Examples
Perform an action after an entry note is emailed.
function my_function() {
//Do something here
}
add_action( 'gform_post_send_entry_note', 'my_function', 10, 7 );
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?
Source Code
This action hook is located in entry_detail.php.