PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmField.php +6 -20 6.45.1 View file →
@@ -8,17 +8,8 @@
8 8 public static $use_cache = true;
9 9 public static $transient_size = 200;
10 10
11 11 public static function field_selection() {
12 - $frm_settings = FrmAppHelper::get_settings();
13 - $active_captcha = $frm_settings->active_captcha;
14 - if ( ! FrmFieldCaptcha::should_show_captcha() ) {
15 - $captcha_name = 'Captcha';
16 - } elseif ( $active_captcha === 'recaptcha' ) {
17 - $captcha_name = 'reCAPTCHA';
18 - } else {
19 - $captcha_name = 'hCaptcha';
20 - }
21 12 $fields = array(
22 13 'text' => array(
23 14 'name' => __( 'Text', 'formidable' ),
24 15 'icon' => 'frm_icon_font frm_text2_icon',
@@ -71,9 +62,9 @@
71 62 'name' => __( 'User ID', 'formidable' ),
72 63 'icon' => 'frm_icon_font frm_user_icon',
73 64 ),
74 65 'captcha' => array(
75 - 'name' => $captcha_name,
66 + 'name' => __( 'reCAPTCHA', 'formidable' ),
76 67 'icon' => 'frm_icon_font frm_shield_check_icon',
77 68 ),
78 69 );
79 70
@@ -185,13 +176,12 @@
185 176 'name' => __( 'Signature', 'formidable' ),
186 177 'icon' => 'frm_icon_font frm_signature_icon frm_show_upgrade',
187 178 'addon' => 'signature',
188 179 ),
189 - 'ai' => array(
190 - 'name' => __( 'AI', 'formidable' ),
191 - 'icon' => 'frm_icon_font frm_eye_icon frm_show_upgrade',
192 - 'addon' => 'ai',
193 - 'message' => 'Streamline workflows and reclaim valuable time with the power of AI. You can effortlessly respond to your visitors in real-time with ChatGPT as your automated assistant. Upgrade to Pro and unlock AI-powered fields.',
180 + 'quiz_score' => array(
181 + 'name' => __( 'Quiz Score', 'formidable' ),
182 + 'icon' => 'frm_icon_font frm_percent_icon frm_show_upgrade',
183 + 'addon' => 'quizzes',
194 184 ),
195 185 'ssa-appointment' => array(
196 186 'name' => __( 'Appointment', 'formidable' ),
197 187 'icon' => 'frm_icon_font frm_calendar_icon frm_show_upgrade',
@@ -216,12 +206,8 @@
216 206 'section' => 'pricing',
217 207 ),
218 208 );
219 209
220 - if ( ! FrmAppHelper::show_new_feature( 'ai' ) ) {
221 - unset( $fields['ai'] );
222 - }
223 -
224 210 // Since the signature field may be in a different section, don't show it twice.
225 211 $lite_fields = self::field_selection();
226 212 if ( isset( $lite_fields['signature'] ) ) {
227 213 unset( $fields['signature'] );
@@ -1083,9 +1069,9 @@
1083 1069
1084 1070 /**
1085 1071 * @param string $id
1086 1072 *
1087 - * @return null|string
1073 + * @return string
1088 1074 */
1089 1075 public static function get_key_by_id( $id ) {
1090 1076 return FrmDb::get_var( 'frm_fields', array( 'id' => $id ), 'field_key' );
1091 1077 }