Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Config
File: PluginSettingsAdvanced.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
return apply_filters( 'ninja_forms_plugin_settings_advanced', array(
[2] Fix | Delete
[3] Fix | Delete
/*
[4] Fix | Delete
|--------------------------------------------------------------------------
[5] Fix | Delete
| Delete on Uninstall
[6] Fix | Delete
|--------------------------------------------------------------------------
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
'delete_on_uninstall' => array(
[10] Fix | Delete
'id' => 'delete_on_uninstall',
[11] Fix | Delete
'type' => 'html',
[12] Fix | Delete
'html' => '<button type="button" id="delete_on_uninstall" href="" class="button">' .
[13] Fix | Delete
esc_html__( 'Delete All Data', 'ninja-forms' ) . '</button>',
[14] Fix | Delete
'label' => esc_html__( 'Remove ALL Ninja Forms data upon uninstall?', 'ninja-forms' ),
[15] Fix | Delete
'desc' => sprintf( esc_html__( 'ALL Ninja Forms data will be removed from the database and the Ninja Forms plug-in will be deactivated. %sAll form and submission data will be unrecoverable.%s', 'ninja-forms' ), '<span class="nf-nuke-warning">', '</span>' ),
[16] Fix | Delete
),
[17] Fix | Delete
[18] Fix | Delete
/*
[19] Fix | Delete
|--------------------------------------------------------------------------
[20] Fix | Delete
| Delete Prompt for Delete on Uninstall
[21] Fix | Delete
|--------------------------------------------------------------------------
[22] Fix | Delete
*/
[23] Fix | Delete
[24] Fix | Delete
'delete_prompt' => array(
[25] Fix | Delete
'id' => 'delete_prompt',
[26] Fix | Delete
'type' => 'prompt',
[27] Fix | Delete
'desc' => esc_html__( 'This setting will COMPLETELY remove anything Ninja Forms related upon plugin deletion. This includes SUBMISSIONS and FORMS. It cannot be undone.', 'ninja-forms' ),
[28] Fix | Delete
),
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
|--------------------------------------------------------------------------
[32] Fix | Delete
| Disable Admin Notices
[33] Fix | Delete
|--------------------------------------------------------------------------
[34] Fix | Delete
*/
[35] Fix | Delete
[36] Fix | Delete
'disable_admin_notices' => array(
[37] Fix | Delete
'id' => 'disable_admin_notices',
[38] Fix | Delete
'type' => 'checkbox',
[39] Fix | Delete
'label' => esc_html__( 'Disable Admin Notices', 'ninja-forms' ),
[40] Fix | Delete
'desc' => esc_html__( 'Never see an admin notice on the dashboard from Ninja Forms. Uncheck to see them again.', 'ninja-forms' ),
[41] Fix | Delete
),
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
|--------------------------------------------------------------------------
[45] Fix | Delete
| "Dev Mode"
[46] Fix | Delete
|--------------------------------------------------------------------------
[47] Fix | Delete
*/
[48] Fix | Delete
[49] Fix | Delete
'builder_dev_mode' => array(
[50] Fix | Delete
'id' => 'builder_dev_mode',
[51] Fix | Delete
'type' => 'checkbox',
[52] Fix | Delete
'label' => esc_html__( 'Form Builder "Dev Mode"', 'ninja-forms' ),
[53] Fix | Delete
),
[54] Fix | Delete
[55] Fix | Delete
/*
[56] Fix | Delete
|--------------------------------------------------------------------------
[57] Fix | Delete
| Tracking Opt-in
[58] Fix | Delete
|--------------------------------------------------------------------------
[59] Fix | Delete
*/
[60] Fix | Delete
[61] Fix | Delete
'allow_tracking' => array(
[62] Fix | Delete
'id' => 'allow_tracking',
[63] Fix | Delete
'type' => 'html',
[64] Fix | Delete
'html' => '<span id="nfTelOptin" class="button hidden">' . esc_html__( 'Opt-in', 'ninja-forms' ) . '</span><span id="nfTelOptout" class="button hidden">' . esc_html__( 'Opt-out', 'ninja-forms' ) . '</span><span id="nfTelSpinner" class="nf-loading-spinner" style="display:none;"></span>',
[65] Fix | Delete
'label' => esc_html__( 'Allow Telemetry', 'ninja-forms' ),
[66] Fix | Delete
'desc' => esc_html__( 'Opt-in to allow Ninja Forms to collect anonymous usage statistics from your site, such as PHP version, installed plugins, and other non-personally idetifiable informations.', 'ninja-forms' ),
[67] Fix | Delete
),
[68] Fix | Delete
[69] Fix | Delete
/*
[70] Fix | Delete
|--------------------------------------------------------------------------
[71] Fix | Delete
| Opinionated Styles
[72] Fix | Delete
|--------------------------------------------------------------------------
[73] Fix | Delete
*/
[74] Fix | Delete
[75] Fix | Delete
'opinionated_styles' => array(
[76] Fix | Delete
'id' => 'opinionated_styles',
[77] Fix | Delete
'type' => 'select',
[78] Fix | Delete
'label' => esc_html__( 'Opinionated Styles', 'ninja-forms' ),
[79] Fix | Delete
'options' => array(
[80] Fix | Delete
array(
[81] Fix | Delete
'label' => esc_html__( 'None', 'ninja-forms' ),
[82] Fix | Delete
'value' => '',
[83] Fix | Delete
),
[84] Fix | Delete
array(
[85] Fix | Delete
'label' => esc_html__( 'Light', 'ninja-forms' ),
[86] Fix | Delete
'value' => 'light',
[87] Fix | Delete
),
[88] Fix | Delete
array(
[89] Fix | Delete
'label' => esc_html__( 'Dark', 'ninja-forms' ),
[90] Fix | Delete
'value' => 'dark',
[91] Fix | Delete
),
[92] Fix | Delete
),
[93] Fix | Delete
'desc' => esc_html__( 'Use default Ninja Forms styling conventions.', 'ninja-forms' ),
[94] Fix | Delete
'value' => ''
[95] Fix | Delete
),
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
|--------------------------------------------------------------------------
[99] Fix | Delete
| Rollback to v2.9.x
[100] Fix | Delete
|--------------------------------------------------------------------------
[101] Fix | Delete
*/
[102] Fix | Delete
[103] Fix | Delete
'downgrade' => array(
[104] Fix | Delete
'id' => 'downgrade',
[105] Fix | Delete
'type' => 'html',
[106] Fix | Delete
'html' => '<div id="nfDowngrade" class="button">' . esc_html__( 'Downgrade', 'ninja-forms' ) . '</div>',
[107] Fix | Delete
'label' => esc_html__( 'Downgrade to v2.9.x', 'ninja-forms' ),
[108] Fix | Delete
'desc' => esc_html__( 'Downgrade to the most recent 2.9.x release.', 'ninja-forms' ) . '<br /><div style="color: red">' . esc_html__( 'IMPORTANT: All 3.0 data will be removed.', 'ninja-forms' ) . '<br />' . esc_html__( 'Please export any forms or submissions you do not want to be lost during this process.', 'ninja-forms' ) . '</div>',
[109] Fix | Delete
),
[110] Fix | Delete
[111] Fix | Delete
'trash_expired_submissions' => array(
[112] Fix | Delete
'id' => 'trash_expired_submissions',
[113] Fix | Delete
'type' => 'html',
[114] Fix | Delete
'html' => '<div id="nfTrashExpiredSubmissions" class="button">' . esc_html__( 'Move To Trash', 'ninja-forms' ) . '</div>',
[115] Fix | Delete
'label' => esc_html__( 'Trash Expired Submissions', 'ninja-forms' ),
[116] Fix | Delete
'desc' => esc_html__( 'This setting maybe helpful if your WordPress installation is not moving expired submissions to the trash properly.', 'ninja-forms' ),
[117] Fix | Delete
),
[118] Fix | Delete
[119] Fix | Delete
// Add a button for removing all forms from maintenance
[120] Fix | Delete
'remove_maintenance_mode' => array(
[121] Fix | Delete
'id' => 'remove_maintenance_mode',
[122] Fix | Delete
'type' => 'html',
[123] Fix | Delete
'html' => '<div id="nfRemoveMaintenanceMode" class="button">' . esc_html__( 'Remove Maintenance Mode', 'ninja-forms' ) . '</div><span id="nf_maintenanceModeProgress" style="display:none;margin-left:15px;"></span>',
[124] Fix | Delete
'label' => esc_html__( 'Remove Maintenance Mode', 'ninja-forms' ),
[125] Fix | Delete
'desc' => esc_html__( 'Click this button if any of your forms are still in \'Maintenance Mode\' after performing any required updates.' , 'ninja-forms' ),
[126] Fix | Delete
),
[127] Fix | Delete
[128] Fix | Delete
));
[129] Fix | Delete
[130] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function