Fires after a note is attached to an entry and sent as an email.


do_action( 'gform_post_send_entry_note', (string) $result, (string) $email_to, (string) $email_from, (string) $email_subject, (mixed) $body, (array) $form, (array) $lead ); 

Parameters (7)

0. $result (string)
The Error message or success message when the entry note is sent
1. $email_to (string)
The email address to send the entry note to
2. $email_from (string)
The email address from which the email is sent from
3. $email_subject (string)
The subject of the email that is sent
4. $body (mixed)
The Full body of the email containing the message after the note is sent
5. $form (array)
The current form object
6. $lead (array)
The Current lead object


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gform_post_send_entry_note', $result, $email_to, $email_from, $email_subject, $body, $form, $lead ); 
The following example is for adding a hook callback.
  1. // define the gform_post_send_entry_note callback 
  2. function action_gform_post_send_entry_note( $result, $email_to, $email_from, $email_subject, $body, $form, $lead ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'gform_post_send_entry_note', 'action_gform_post_send_entry_note', 10, 7 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gform_post_send_entry_note', 'action_gform_post_send_entry_note', 10, 7 ); 

Defined (1)

The action is defined in the following location(s).

  1. do_action( 'gform_post_send_entry_note', $result, $email_to, $email_from, $email_subject, $body, $form, $lead );