PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4
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 +2 -21 6.35.4 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,14 +176,8 @@
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.',
194 - ),
195 180 'ssa-appointment' => array(
196 181 'name' => __( 'Appointment', 'formidable' ),
197 182 'icon' => 'frm_icon_font frm_calendar_icon frm_show_upgrade',
198 183 'require' => 'Simply Schedule Appointments',
@@ -216,12 +201,8 @@
216 201 'section' => 'pricing',
217 202 ),
218 203 );
219 204
220 - if ( ! FrmAppHelper::show_new_feature( 'ai' ) ) {
221 - unset( $fields['ai'] );
222 - }
223 -
224 205 // Since the signature field may be in a different section, don't show it twice.
225 206 $lite_fields = self::field_selection();
226 207 if ( isset( $lite_fields['signature'] ) ) {
227 208 unset( $fields['signature'] );
@@ -1083,9 +1064,9 @@
1083 1064
1084 1065 /**
1085 1066 * @param string $id
1086 1067 *
1087 - * @return null|string
1068 + * @return string
1088 1069 */
1089 1070 public static function get_key_by_id( $id ) {
1090 1071 return FrmDb::get_var( 'frm_fields', array( 'id' => $id ), 'field_key' );
1091 1072 }