ninja_forms_action_email_settings
Attach CSV.
Description
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' => 'one-half', 'use_merge_tags' => TRUE, ),'reply_to' => array( 'name' => 'reply_to', 'type' => 'textbox', 'group' => 'primary', 'label' => __( 'Reply To', 'ninja-forms' ), 'placeholder' => '', 'value' => '', 'width' => 'one-half', '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' => array( 'include' => array( 'calcs', ), ), '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, ),'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.
- $array = apply_filters( 'ninja_forms_action_email_settings', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the ninja_forms_action_email_settings callback
- function filter_ninja_forms_action_email_settings( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'ninja_forms_action_email_settings', 'filter_ninja_forms_action_email_settings', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- return apply_filters( 'ninja_forms_action_email_settings', array(