ninja_forms_action_email_settings

Attach CSV.

Description

apply_filters( 'ninja_forms_action_email_settings', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array('to' => array( 'name' => 'to', 'type' => 'textbox', 'group' => 'primary', 'label' => __( 'To', 'ninja-forms' ), 'placeholder' => __( 'Email address or search for a field', 'ninja-forms' ), 'value' => '', 'width' => 'full', 'use_merge_tags' => TRUE, ),'email_subject' => array( 'name' => 'email_subject', 'type' => 'textbox', 'group' => 'primary', 'label' => __( 'Subject', 'ninja-forms' ), 'placeholder' => __( 'Subject Text or seach for a field', 'ninja-forms' ), 'value' => '', 'width' => 'full', 'use_merge_tags' => TRUE, ),'email_message' => array( 'name' => 'email_message', 'type' => 'rte', 'group' => 'primary', 'label' => __( 'Email Message', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'width' => 'full', 'use_merge_tags' => TRUE, 'deps' => array( 'email_format' => 'html' ) ),'email_message_plain' => array( 'name' => 'email_message_plain', 'type' => 'textarea', 'group' => 'primary', 'label' => __( 'Email Message', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'width' => 'full', 'use_merge_tags' => TRUE, 'deps' => array( 'email_format' => 'plain' ) ),'from_name' => array( 'name' => 'from_name', 'type' => 'textbox', 'group' => 'advanced', 'label' => __( 'From Name', 'ninja-forms' ), 'placeholder' => __( 'Name or fields', 'ninja-forms' ), 'value' => '', 'width' => 'one-half', 'use_merge_tags' => TRUE, ),'from_address' => array( 'name' => 'from_address', 'type' => 'textbox', 'group' => 'advanced', 'label' => __( 'From Address', 'ninja-forms' ), 'placeholder' => __( 'One email address or field', 'ninja-forms' ), 'value' => '', 'use_merge_tags' => TRUE, ),'reply_to' => array( 'name' => 'reply_to', 'type' => 'textbox', 'group' => 'advanced', 'label' => __( 'Reply To', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'use_merge_tags' => TRUE, ),'email_format' => array( 'name' => 'email_format', 'type' => 'select', 'options' => array( array( 'label' => __( 'HTML', 'ninja-forms' ), 'value' => 'html' ), array( 'label' => __( 'Plain Text', 'ninja-forms' ), 'value' => 'plain' ) ), 'group' => 'advanced', 'label' => __( 'Format', 'ninja-forms' ), 'value' => 'html', ),'cc' => array( 'name' => 'cc', 'type' => 'textbox', 'group' => 'advanced', 'label' => __( 'Cc', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'use_merge_tags' => TRUE, ),'bcc' => array( 'name' => 'bcc', 'type' => 'textbox', 'group' => 'advanced', 'label' => __( 'Bcc', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'use_merge_tags' => TRUE, ),'attach_csv' => array( 'name' => 'attach_csv', 'type' => 'toggle', 'group' => 'advanced', 'label' => __( 'Attach CSV', 'ninja-forms' ), ),)
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'ninja_forms_action_email_settings', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ninja_forms_action_email_settings callback 
  2. function filter_ninja_forms_action_email_settings( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_action_email_settings', 'filter_ninja_forms_action_email_settings', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_action_email_settings', 'filter_ninja_forms_action_email_settings', 10, 1 ); 

Defined (1)

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

/includes/Config/ActionEmailSettings.php  
  1. return apply_filters( 'ninja_forms_action_email_settings', array(