<?php if ( ! defined( 'ABSPATH' ) ) exit;
return apply_filters( 'ninja_forms_action_save_settings', array(
'submitter_email' => array(
'name' => 'submitter_email',
'type' => 'email-select',
'label' => esc_html__( 'Designated Submitter\'s Email Address', 'ninja-forms' ),
'help' => esc_html__( 'The email address used in this field will be allowed to make data export and delete requests on behalf of their form submission.', 'ninja-forms' ),
'fields_save_toggle' => array(
'name' => 'fields-save-toggle',
'type' => 'button-toggle',
array( 'label' => esc_html__( 'Save All', 'ninja-forms' ), 'value' => 'save_all' ),
array( 'label' => esc_html__( 'Save None', 'ninja-forms' ), 'value' => 'save_none' )
'label' => esc_html__( 'Fields', 'ninja-forms' ),
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
'exception_fields' => array(
'name' => 'exception_fields',
'type' => 'option-repeater',
'label' => esc_html__( 'Except', 'ninja-forms' ) . ' <a href="#" class="nf-add-new">' .
esc_html__( 'Add New', 'ninja-forms' ) . '</a>',
'tmpl_row' => 'nf-tmpl-save-field-repeater-row',
'header' => esc_html__( 'Form Field', 'ninja-forms' ),
'set_subs_to_expire' => array(
'name' => 'set_subs_to_expire',
'label' => esc_html__( 'Set Submissions to expire?', 'ninja-forms' ),
'help' => esc_html__( 'Sets submissions to be trashes after a certain number of days, it affects all existing and new submissions', 'ninja-forms' ),
'subs_expire_time' => array(
'name' => 'subs_expire_time',
'label' => esc_html__( 'How long in days until subs expire?', 'ninja-forms' ),
'min_val' => 1, // new minimum value setting
'max_val' => null, // new maximum value setting
'set_subs_to_expire' => 1