| @@ -185,14 +185,8 @@ | ||
| 185 | 185 | 'name' => __( 'Signature', 'formidable' ), |
| 186 | 186 | 'icon' => 'frm_icon_font frm_signature_icon frm_show_upgrade', |
| 187 | 187 | 'addon' => 'signature', |
| 188 | 188 | ), |
| 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 | 189 | 'ssa-appointment' => array( |
| 196 | 190 | 'name' => __( 'Appointment', 'formidable' ), |
| 197 | 191 | 'icon' => 'frm_icon_font frm_calendar_icon frm_show_upgrade', |
| 198 | 192 | 'require' => 'Simply Schedule Appointments', |
| @@ -216,12 +210,8 @@ | ||
| 216 | 210 | 'section' => 'pricing', |
| 217 | 211 | ), |
| 218 | 212 | ); |
| 219 | 213 | |
| 220 | - if ( ! FrmAppHelper::show_new_feature( 'ai' ) ) { | |
| 221 | - unset( $fields['ai'] ); | |
| 222 | - } | |
| 223 | - | |
| 224 | 214 | // Since the signature field may be in a different section, don't show it twice. |
| 225 | 215 | $lite_fields = self::field_selection(); |
| 226 | 216 | if ( isset( $lite_fields['signature'] ) ) { |
| 227 | 217 | unset( $fields['signature'] ); |
| @@ -1083,9 +1073,9 @@ | ||
| 1083 | 1073 | |
| 1084 | 1074 | /** |
| 1085 | 1075 | * @param string $id |
| 1086 | 1076 | * |
| 1087 | - * @return null|string | |
| 1077 | + * @return string | |
| 1088 | 1078 | */ |
| 1089 | 1079 | public static function get_key_by_id( $id ) { |
| 1090 | 1080 | return FrmDb::get_var( 'frm_fields', array( 'id' => $id ), 'field_key' ); |
| 1091 | 1081 | } |