gpeu_email_options
Description
Filter the email options.
Usage
add_filter( 'gpeu_email_options', 'my_custom_function' );
Parameters
options array
Any array of options that will be used to generate and send the email. Contains
to
,from
,bcc
,reply_to
, andmessage
.form array
The current form object.
entry array
The entry object.
Since
This filter is available since Gravity Forms Email Users 2.0.7.
Examples
Attach a file
add_filter( 'gpeu_email_options', function( $options, $form ) {
$options['attachment'] = array( 'path/to/file' );
return $options;
}, 10, 2 );