nf_29_update_all_form_settings_check

Check our option to see if we've updated all of our forms.

Description

nf_29_update_all_form_settings_check(); 

If we haven't, loop through all of our forms and see if any need to be updated.


Usage

  1. if ( !function_exists( 'nf_29_update_all_form_settings_check' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/upgrades/upgrade-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_29_update_all_form_settings_check(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/admin/upgrades/upgrade-functions.php  
  1. function nf_29_update_all_form_settings_check() { 
  2.  
  3. $forms_conversion_complete = get_option( 'nf_convert_forms_complete', false ); 
  4.  
  5. if ( $forms_conversion_complete ) 
  6. return false; 
  7.  
  8. $url = admin_url( 'index.php?page=nf-upgrade-handler' ); 
  9.  
  10. ?> 
  11. <script type="text/javascript"> 
  12. jQuery(document).ready(function() { 
  13. window.location.href = "<?php echo $url; ?>"; 
  14. } ); 
  15. </script> 
  16. <?php