The Gravity Forms gform after email hook.


do_action( 'gform_after_email', (unknown) $is_success, (unknown) $to, (unknown) $subject, (unknown) $message, (unknown) $headers, (unknown) $attachments, (string) $message_format, (unknown) $from, (string) $from_name, (unknown) $bcc, (unknown) $reply_to, (unknown) $entry ); 

Parameters (12)

0. $is_success (unknown)
The is success.
1. $to (unknown)
The to.
2. $subject (unknown)
The subject.
3. $message (unknown)
The message.
4. $headers (unknown)
The headers.
5. $attachments (unknown)
The attachments.
6. $message_format (string)
The message format.
7. $from (unknown)
The from.
8. $from_name (string)
The from name.
9. $bcc (unknown)
The bcc.
10. $reply_to (unknown)
The reply to.
11. $entry (unknown)
The entry.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gform_after_email', $is_success, $to, $subject, $message, $headers, $attachments, $message_format, $from, $from_name, $bcc, $reply_to, $entry ); 
The following example is for adding a hook callback.
  1. // define the gform_after_email callback 
  2. function action_gform_after_email( $is_success, $to, $subject, $message, $headers, $attachments, $message_format, $from, $from_name, $bcc, $reply_to, $entry ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'gform_after_email', 'action_gform_after_email', 10, 12 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gform_after_email', 'action_gform_after_email', 10, 12 ); 

Defined (1)

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

  1. do_action( 'gform_after_email', $is_success, $to, $subject, $message, $headers, $attachments, $message_format, $from, $from_name, $bcc, $reply_to, $entry );