Changeset 3404010
- Timestamp:
- 11/27/2025 11:41:42 AM (2 weeks ago)
- Location:
- conditional-fields-for-elementor-form
- Files:
-
- 10 edited
- 1 copied
-
tags/1.4.9 (copied) (copied from conditional-fields-for-elementor-form/trunk)
-
tags/1.4.9/admin/class-cfef-admin.php (modified) (4 diffs)
-
tags/1.4.9/admin/views/form-elements.php (modified) (5 diffs)
-
tags/1.4.9/assets/js/admin-script.js (modified) (5 diffs)
-
tags/1.4.9/class-conditional-fields-for-elementor-form.php (modified) (5 diffs)
-
tags/1.4.9/readme.txt (modified) (2 diffs)
-
trunk/admin/class-cfef-admin.php (modified) (4 diffs)
-
trunk/admin/views/form-elements.php (modified) (5 diffs)
-
trunk/assets/js/admin-script.js (modified) (5 diffs)
-
trunk/class-conditional-fields-for-elementor-form.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
conditional-fields-for-elementor-form/tags/1.4.9/admin/class-cfef-admin.php
r3347987 r3404010 100 100 101 101 add_action('cpfm_after_opt_in_cfef', function($category) { 102 103 104 102 105 103 if ($category === 'cool_forms') { 106 104 … … 112 110 }); 113 111 } 112 113 114 public function add_to_cfkef_enabled_elements( $new_items ) { 115 $current = get_option( 'cfkef_enabled_elements', [] ); 116 $merged = array_unique( array_merge( $current, (array) $new_items ) ); 117 update_option( 'cfkef_enabled_elements', $merged ); 118 } 119 114 120 /** 115 121 * Get the instance of this class. … … 254 260 register_setting( 'cfkef_form_elements_group', 'cfkef_toggle_all' ); 255 261 register_setting( 'cfkef_form_elements_group', 'country_code' ); 256 register_setting( 'cfkef_form_elements_group', 'cond tional_logic' );262 register_setting( 'cfkef_form_elements_group', 'conditional_logic' ); 257 263 register_setting( 'cfkef_form_elements_group', 'form_input_mask' ); 258 264 register_setting( 'cfkef_form_elements_group', 'input_mask' ); … … 264 270 if (!get_option('cfef_plugin_initialized')) { 265 271 // Get current enabled elements or empty array 266 267 update_option( 'condtional_logic', true ); 272 $this->add_to_cfkef_enabled_elements( ['conditional_logic'] ); 273 // Set initialization flag to avoid repeating 274 update_option('cfef_plugin_initialized', true); 268 275 269 // Set initialization flag to avoid repeating 270 update_option('cfef_plugin_initialized', true); 271 272 } 273 274 if (!get_option('ccfef_plugin_initialized')) { 275 // Get current enabled elements or empty array 276 update_option( 'country_code', true ); 277 278 // Set initialization flag to avoid repeating 279 update_option('ccfef_plugin_initialized', true); 280 } 281 282 if (!get_option('fme_plugin_initialized')) { 283 // Get current enabled elements or empty array 284 285 update_option( 'form_input_mask', true ); 286 287 // Set initialization flag to avoid repeating 288 update_option('fme_plugin_initialized', true); 289 276 } 277 else { 278 279 if ( ! get_option( 'cfef_migrate_done' ) ) { 280 281 $val = get_option( 'condtional_logic', null ); 282 283 if ( ! is_null( $val ) && $val ) { 284 // Option exists AND is true 285 $this->add_to_cfkef_enabled_elements( ['conditional_logic'] ); 286 } 287 288 update_option( 'cfef_migrate_done', true ); 289 } 290 } 291 292 if ( ! get_option( 'ccfef_plugin_initialized' ) ) { 293 294 $this->add_to_cfkef_enabled_elements( ['country_code'] ); 295 296 update_option( 'ccfef_plugin_initialized', true ); 297 298 } else { 299 300 if ( ! get_option( 'ccfef_migrate_done' ) ) { 301 302 $val = get_option( 'country_code', null ); 303 304 if ( ! is_null( $val ) && $val ) { 305 // Option exists AND is true 306 $this->add_to_cfkef_enabled_elements( ['country_code'] ); 307 } 308 309 update_option( 'ccfef_migrate_done', true ); 310 } 311 } 312 313 if ( ! get_option( 'fme_plugin_initialized' ) ) { 314 315 $this->add_to_cfkef_enabled_elements( ['form_input_mask'] ); 316 317 update_option( 'fme_plugin_initialized', true ); 318 319 } else { 320 321 if ( ! get_option( 'fme_migrate_done' ) ) { 322 323 $val = get_option( 'form_input_mask', null ); 324 325 if ( ! is_null( $val ) && $val ) { 326 // Option exists AND is true 327 $this->add_to_cfkef_enabled_elements( ['form_input_mask'] ); 328 } 329 330 update_option( 'fme_migrate_done', true ); 331 } 290 332 } 291 333 } -
conditional-fields-for-elementor-form/tags/1.4.9/admin/views/form-elements.php
r3348615 r3404010 183 183 184 184 $condition_plugin_features = array( 185 'cond tional_logic' => array(185 'conditional_logic' => array( 186 186 'label' => __('Conditional Logic', 'cool-formkit'), 187 187 'how_to' => str_replace('utm_source=cfkef_plugin', 'utm_source=' . $first_plugin, 'https://docs.coolplugins.net/doc/elementor-form-conditional-fields/?utm_source=cfkef_plugin&utm_medium=inside&utm_campaign=docs&utm_content=dashboard'), … … 520 520 521 521 <label class="cfkef-toggle-switch" style="<?php echo !$is_condtional_field_active ? 'opacity: 0.2; ' : ''; ?>"> 522 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('condtional_logic')); 523 ?> class="cfkef-element-toggle" 522 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 524 523 <?php disabled(!$is_condtional_field_active); ?>> 525 524 <?php if (!empty($element['pro'])): ?> … … 722 721 723 722 <label class="cfkef-toggle-switch" style="<?php echo !$is_country_field_active ? 'opacity: 0.2; ' : ''; ?>"> 724 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('country_code')); 725 ?> class="cfkef-element-toggle" 723 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 726 724 <?php disabled(!$is_country_field_active); ?>> 727 725 <?php if (!empty($element['pro'])): ?> … … 836 834 </div> 837 835 <label class="cfkef-toggle-switch" > 838 <input type="checkbox" name=" <?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); ?> class="cfkef-element-toggle"836 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 839 837 <?php disabled(!empty($element['pro'])); ?>> 840 838 <?php if (!empty($element['pro'])): ?> … … 1040 1038 1041 1039 <label class="cfkef-toggle-switch" style="<?php echo !$is_form_mask_active ? 'opacity: 0.2; ' : ''; ?>"> 1042 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); 1043 ?> class="cfkef-element-toggle" 1040 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 1044 1041 <?php disabled(!$is_form_mask_active); ?>> 1045 1042 <?php if (!empty($element['pro'])): ?> -
conditional-fields-for-elementor-form/tags/1.4.9/assets/js/admin-script.js
r3347987 r3404010 82 82 if (!headerButton || bodyInputs.length === 0) return; 83 83 84 const input1 = wrapper.querySelector('input[ name="condtional_logic"]');85 const input2 = wrapper.querySelector('input[ name="country_code"]');86 const input3 = wrapper.querySelector('input[ name="form_input_mask"]');87 const input4 = wrapper.querySelector('input[ name="input_mask"]');84 const input1 = wrapper.querySelector('input[value="conditional_logic"]'); 85 const input2 = wrapper.querySelector('input[value="country_code"]'); 86 const input3 = wrapper.querySelector('input[value="form_input_mask"]'); 87 const input4 = wrapper.querySelector('input[value="input_mask"]'); 88 88 89 89 … … 95 95 } 96 96 97 97 98 98 99 bodyInputs.forEach(input => { 99 100 100 101 102 101 input.addEventListener('change', function () { 103 console.log(input.name); 104 105 106 if (input1 && input.name === 'condtional_logic') { 102 103 104 if (input1 && input.value === 'conditional_logic') { 107 105 108 106 109 107 if(input1.checked || !input1.checked){ 110 108 111 jQuery('input[ name="condtional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');109 jQuery('input[value="conditional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 112 110 } 113 111 } 114 112 115 else if (input2 && input. name === 'country_code') {113 else if (input2 && input.value === 'country_code') { 116 114 117 115 if(input2.checked || !input2.checked){ 118 116 119 jQuery('input[ name="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');120 } 121 } 122 123 else if (input3 && input. name === 'form_input_mask') {117 jQuery('input[value="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 118 } 119 } 120 121 else if (input3 && input.value === 'form_input_mask') { 124 122 125 123 if(input3.checked || !input3.checked){ 126 124 127 jQuery('input[ name="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');128 } 129 } 130 131 else if (input4 && input. name === 'input_mask') {125 jQuery('input[value="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 126 } 127 } 128 129 else if (input4 && input.value === 'input_mask') { 132 130 133 131 if(input4.checked || !input4.checked){ 134 132 135 jQuery('input[ name="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');133 jQuery('input[value="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 136 134 } 137 135 } … … 154 152 if (tooltip.style.display === 'block') { 155 153 tooltip.style.display = 'none'; 156 157 154 let plugin_name = tooltip.textContent.replace('Activate Plugin', ''); 158 155 159 tooltip.textContent = plugin_name; // Reset message 160 161 156 tooltip.innerHTML = plugin_name; // Reset message 162 157 } else { 163 158 tooltip.style.display = 'block'; … … 201 196 document.querySelectorAll('.cfkef-tooltip').forEach(tip => { 202 197 tip.style.display = 'none'; 203 204 205 198 tip_message = tip.textContent.replace('Activate Plugin', ''); 206 199 tip.innerHTML = tip_message; … … 244 237 window.location.reload(); 245 238 } 246 247 239 }, 248 240 error: function () { -
conditional-fields-for-elementor-form/tags/1.4.9/class-conditional-fields-for-elementor-form.php
r3379234 r3404010 4 4 * Plugin URI:https://coolplugins.net/ 5 5 * Description: The Conditional Fields for Elementor plugin add-on used to show and hide form fields based on conditional input values. 6 * Version: 1.4. 86 * Version: 1.4.9 7 7 * Author: Cool Plugins 8 8 * Author URI: https://coolplugins.net/?utm_source=cfef_plugin&utm_medium=inside&utm_campaign=author_page&utm_content=plugins_list … … 21 21 } 22 22 if ( ! defined( 'CFEF_VERSION' ) ) { 23 define( 'CFEF_VERSION', '1.4. 8' );23 define( 'CFEF_VERSION', '1.4.9' ); 24 24 } 25 25 /*** Defined constent for later use */ … … 77 77 } 78 78 79 private function is_field_enabled($field_key) { 80 $enabled_elements = get_option('cfkef_enabled_elements', array()); 81 return in_array(sanitize_key($field_key), array_map('sanitize_key', $enabled_elements)); 82 } 83 79 84 private function includes() { 80 85 … … 86 91 public function cfef_register_new_form_actions($form_actions_registrar){ 87 92 88 if( get_option('condtional_logic', true)){93 if($this->is_field_enabled('conditional_logic')){ 89 94 90 95 include_once( __DIR__ . '/includes/class-conditional-fields-redirection.php' ); … … 98 103 */ 99 104 public function is_compatible() { 100 add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );101 102 if( get_option('condtional_logic', true)){105 // add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 ); 106 107 if($this->is_field_enabled('conditional_logic')){ 103 108 104 109 -
conditional-fields-for-elementor-form/tags/1.4.9/readme.txt
r3379234 r3404010 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2 8 Stable tag: 1.4. 88 Stable tag: 1.4.9 9 9 10 10 License: GPLv2 or later … … 232 232 233 233 == Changelog == 234 235 = 1.4.9 | Nov 27, 2025 = 236 * Fixed: Setting ID mismatch causing updates to not reflect in all versions. 234 237 235 238 = 1.4.8 | Oct 16, 2025 = -
conditional-fields-for-elementor-form/trunk/admin/class-cfef-admin.php
r3347987 r3404010 100 100 101 101 add_action('cpfm_after_opt_in_cfef', function($category) { 102 103 104 102 105 103 if ($category === 'cool_forms') { 106 104 … … 112 110 }); 113 111 } 112 113 114 public function add_to_cfkef_enabled_elements( $new_items ) { 115 $current = get_option( 'cfkef_enabled_elements', [] ); 116 $merged = array_unique( array_merge( $current, (array) $new_items ) ); 117 update_option( 'cfkef_enabled_elements', $merged ); 118 } 119 114 120 /** 115 121 * Get the instance of this class. … … 254 260 register_setting( 'cfkef_form_elements_group', 'cfkef_toggle_all' ); 255 261 register_setting( 'cfkef_form_elements_group', 'country_code' ); 256 register_setting( 'cfkef_form_elements_group', 'cond tional_logic' );262 register_setting( 'cfkef_form_elements_group', 'conditional_logic' ); 257 263 register_setting( 'cfkef_form_elements_group', 'form_input_mask' ); 258 264 register_setting( 'cfkef_form_elements_group', 'input_mask' ); … … 264 270 if (!get_option('cfef_plugin_initialized')) { 265 271 // Get current enabled elements or empty array 266 267 update_option( 'condtional_logic', true ); 272 $this->add_to_cfkef_enabled_elements( ['conditional_logic'] ); 273 // Set initialization flag to avoid repeating 274 update_option('cfef_plugin_initialized', true); 268 275 269 // Set initialization flag to avoid repeating 270 update_option('cfef_plugin_initialized', true); 271 272 } 273 274 if (!get_option('ccfef_plugin_initialized')) { 275 // Get current enabled elements or empty array 276 update_option( 'country_code', true ); 277 278 // Set initialization flag to avoid repeating 279 update_option('ccfef_plugin_initialized', true); 280 } 281 282 if (!get_option('fme_plugin_initialized')) { 283 // Get current enabled elements or empty array 284 285 update_option( 'form_input_mask', true ); 286 287 // Set initialization flag to avoid repeating 288 update_option('fme_plugin_initialized', true); 289 276 } 277 else { 278 279 if ( ! get_option( 'cfef_migrate_done' ) ) { 280 281 $val = get_option( 'condtional_logic', null ); 282 283 if ( ! is_null( $val ) && $val ) { 284 // Option exists AND is true 285 $this->add_to_cfkef_enabled_elements( ['conditional_logic'] ); 286 } 287 288 update_option( 'cfef_migrate_done', true ); 289 } 290 } 291 292 if ( ! get_option( 'ccfef_plugin_initialized' ) ) { 293 294 $this->add_to_cfkef_enabled_elements( ['country_code'] ); 295 296 update_option( 'ccfef_plugin_initialized', true ); 297 298 } else { 299 300 if ( ! get_option( 'ccfef_migrate_done' ) ) { 301 302 $val = get_option( 'country_code', null ); 303 304 if ( ! is_null( $val ) && $val ) { 305 // Option exists AND is true 306 $this->add_to_cfkef_enabled_elements( ['country_code'] ); 307 } 308 309 update_option( 'ccfef_migrate_done', true ); 310 } 311 } 312 313 if ( ! get_option( 'fme_plugin_initialized' ) ) { 314 315 $this->add_to_cfkef_enabled_elements( ['form_input_mask'] ); 316 317 update_option( 'fme_plugin_initialized', true ); 318 319 } else { 320 321 if ( ! get_option( 'fme_migrate_done' ) ) { 322 323 $val = get_option( 'form_input_mask', null ); 324 325 if ( ! is_null( $val ) && $val ) { 326 // Option exists AND is true 327 $this->add_to_cfkef_enabled_elements( ['form_input_mask'] ); 328 } 329 330 update_option( 'fme_migrate_done', true ); 331 } 290 332 } 291 333 } -
conditional-fields-for-elementor-form/trunk/admin/views/form-elements.php
r3348615 r3404010 183 183 184 184 $condition_plugin_features = array( 185 'cond tional_logic' => array(185 'conditional_logic' => array( 186 186 'label' => __('Conditional Logic', 'cool-formkit'), 187 187 'how_to' => str_replace('utm_source=cfkef_plugin', 'utm_source=' . $first_plugin, 'https://docs.coolplugins.net/doc/elementor-form-conditional-fields/?utm_source=cfkef_plugin&utm_medium=inside&utm_campaign=docs&utm_content=dashboard'), … … 520 520 521 521 <label class="cfkef-toggle-switch" style="<?php echo !$is_condtional_field_active ? 'opacity: 0.2; ' : ''; ?>"> 522 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('condtional_logic')); 523 ?> class="cfkef-element-toggle" 522 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 524 523 <?php disabled(!$is_condtional_field_active); ?>> 525 524 <?php if (!empty($element['pro'])): ?> … … 722 721 723 722 <label class="cfkef-toggle-switch" style="<?php echo !$is_country_field_active ? 'opacity: 0.2; ' : ''; ?>"> 724 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('country_code')); 725 ?> class="cfkef-element-toggle" 723 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 726 724 <?php disabled(!$is_country_field_active); ?>> 727 725 <?php if (!empty($element['pro'])): ?> … … 836 834 </div> 837 835 <label class="cfkef-toggle-switch" > 838 <input type="checkbox" name=" <?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); ?> class="cfkef-element-toggle"836 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 839 837 <?php disabled(!empty($element['pro'])); ?>> 840 838 <?php if (!empty($element['pro'])): ?> … … 1040 1038 1041 1039 <label class="cfkef-toggle-switch" style="<?php echo !$is_form_mask_active ? 'opacity: 0.2; ' : ''; ?>"> 1042 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); 1043 ?> class="cfkef-element-toggle" 1040 <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle" 1044 1041 <?php disabled(!$is_form_mask_active); ?>> 1045 1042 <?php if (!empty($element['pro'])): ?> -
conditional-fields-for-elementor-form/trunk/assets/js/admin-script.js
r3347987 r3404010 82 82 if (!headerButton || bodyInputs.length === 0) return; 83 83 84 const input1 = wrapper.querySelector('input[ name="condtional_logic"]');85 const input2 = wrapper.querySelector('input[ name="country_code"]');86 const input3 = wrapper.querySelector('input[ name="form_input_mask"]');87 const input4 = wrapper.querySelector('input[ name="input_mask"]');84 const input1 = wrapper.querySelector('input[value="conditional_logic"]'); 85 const input2 = wrapper.querySelector('input[value="country_code"]'); 86 const input3 = wrapper.querySelector('input[value="form_input_mask"]'); 87 const input4 = wrapper.querySelector('input[value="input_mask"]'); 88 88 89 89 … … 95 95 } 96 96 97 97 98 98 99 bodyInputs.forEach(input => { 99 100 100 101 102 101 input.addEventListener('change', function () { 103 console.log(input.name); 104 105 106 if (input1 && input.name === 'condtional_logic') { 102 103 104 if (input1 && input.value === 'conditional_logic') { 107 105 108 106 109 107 if(input1.checked || !input1.checked){ 110 108 111 jQuery('input[ name="condtional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');109 jQuery('input[value="conditional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 112 110 } 113 111 } 114 112 115 else if (input2 && input. name === 'country_code') {113 else if (input2 && input.value === 'country_code') { 116 114 117 115 if(input2.checked || !input2.checked){ 118 116 119 jQuery('input[ name="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');120 } 121 } 122 123 else if (input3 && input. name === 'form_input_mask') {117 jQuery('input[value="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 118 } 119 } 120 121 else if (input3 && input.value === 'form_input_mask') { 124 122 125 123 if(input3.checked || !input3.checked){ 126 124 127 jQuery('input[ name="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');128 } 129 } 130 131 else if (input4 && input. name === 'input_mask') {125 jQuery('input[value="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 126 } 127 } 128 129 else if (input4 && input.value === 'input_mask') { 132 130 133 131 if(input4.checked || !input4.checked){ 134 132 135 jQuery('input[ name="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');133 jQuery('input[value="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect'); 136 134 } 137 135 } … … 154 152 if (tooltip.style.display === 'block') { 155 153 tooltip.style.display = 'none'; 156 157 154 let plugin_name = tooltip.textContent.replace('Activate Plugin', ''); 158 155 159 tooltip.textContent = plugin_name; // Reset message 160 161 156 tooltip.innerHTML = plugin_name; // Reset message 162 157 } else { 163 158 tooltip.style.display = 'block'; … … 201 196 document.querySelectorAll('.cfkef-tooltip').forEach(tip => { 202 197 tip.style.display = 'none'; 203 204 205 198 tip_message = tip.textContent.replace('Activate Plugin', ''); 206 199 tip.innerHTML = tip_message; … … 244 237 window.location.reload(); 245 238 } 246 247 239 }, 248 240 error: function () { -
conditional-fields-for-elementor-form/trunk/class-conditional-fields-for-elementor-form.php
r3379234 r3404010 4 4 * Plugin URI:https://coolplugins.net/ 5 5 * Description: The Conditional Fields for Elementor plugin add-on used to show and hide form fields based on conditional input values. 6 * Version: 1.4. 86 * Version: 1.4.9 7 7 * Author: Cool Plugins 8 8 * Author URI: https://coolplugins.net/?utm_source=cfef_plugin&utm_medium=inside&utm_campaign=author_page&utm_content=plugins_list … … 21 21 } 22 22 if ( ! defined( 'CFEF_VERSION' ) ) { 23 define( 'CFEF_VERSION', '1.4. 8' );23 define( 'CFEF_VERSION', '1.4.9' ); 24 24 } 25 25 /*** Defined constent for later use */ … … 77 77 } 78 78 79 private function is_field_enabled($field_key) { 80 $enabled_elements = get_option('cfkef_enabled_elements', array()); 81 return in_array(sanitize_key($field_key), array_map('sanitize_key', $enabled_elements)); 82 } 83 79 84 private function includes() { 80 85 … … 86 91 public function cfef_register_new_form_actions($form_actions_registrar){ 87 92 88 if( get_option('condtional_logic', true)){93 if($this->is_field_enabled('conditional_logic')){ 89 94 90 95 include_once( __DIR__ . '/includes/class-conditional-fields-redirection.php' ); … … 98 103 */ 99 104 public function is_compatible() { 100 add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );101 102 if( get_option('condtional_logic', true)){105 // add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 ); 106 107 if($this->is_field_enabled('conditional_logic')){ 103 108 104 109 -
conditional-fields-for-elementor-form/trunk/readme.txt
r3379234 r3404010 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2 8 Stable tag: 1.4. 88 Stable tag: 1.4.9 9 9 10 10 License: GPLv2 or later … … 232 232 233 233 == Changelog == 234 235 = 1.4.9 | Nov 27, 2025 = 236 * Fixed: Setting ID mismatch causing updates to not reflect in all versions. 234 237 235 238 = 1.4.8 | Oct 16, 2025 =
Note: See TracChangeset
for help on using the changeset viewer.