gpeu_email_options

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Attach a file

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, and message.

  • form array

    The current form object.

  • entry array

    The entry object.

  • addon object

    The current instance of the GFAddon 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 );