PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/abilities/settings/get-global-settings.php +13 -3 2.12.0 → 2.12.8 View file →
@@ -144,16 +144,26 @@
144 144 $settings = get_option( 'srfm_general_settings_options', [] );
145 145
146 146 if ( empty( $settings ) || ! is_array( $settings ) ) {
147 147 $settings = [
148 - 'srfm_ip_log' => false,
149 - 'srfm_form_analytics' => false,
150 - 'srfm_admin_notification' => true,
148 + 'srfm_ip_log' => false,
149 + 'srfm_form_analytics' => false,
150 + 'srfm_admin_notification' => true,
151 + 'srfm_form_views_tracking' => false,
152 + 'srfm_enable_logs' => true,
151 153 ];
152 154 }
153 155
154 156 if ( ! isset( $settings['srfm_admin_notification'] ) ) {
155 157 $settings['srfm_admin_notification'] = true;
158 + }
159 +
160 + if ( ! isset( $settings['srfm_form_views_tracking'] ) ) {
161 + $settings['srfm_form_views_tracking'] = false;
162 + }
163 +
164 + if ( ! isset( $settings['srfm_enable_logs'] ) ) {
165 + $settings['srfm_enable_logs'] = true;
156 166 }
157 167
158 168 $settings['srfm_bsf_analytics'] = 'yes' === get_option( 'sureforms_usage_optin', false );
159 169