gmb_run_install

Run the gmb Install process.

Description

gmb_run_install(); 

Usage

  1. if ( !function_exists( 'gmb_run_install' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'maps-builder/vendor/wordimpress/maps-builder-core/includes/install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gmb_run_install(); 
  7.  

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/install.php  
  1. function gmb_run_install() { 
  2.  
  3. // Clear the permalinks 
  4. flush_rewrite_rules( false ); 
  5.  
  6. // Add Upgraded From Option 
  7. $current_version = get_option( 'gmb_version' ); 
  8. if ( $current_version ) { 
  9. update_option( 'gmb_version_upgraded_from', $current_version ); 
  10.  
  11. if ( ! $current_version ) { 
  12.  
  13. require_once GMB_CORE_PATH . 'includes/admin/upgrades/upgrade-functions.php'; 
  14.  
  15. // When new upgrade routines are added, mark them as complete on fresh install 
  16. $upgrade_routines = array( 
  17. 'gmb_markers_upgraded',  
  18. 'gmb_refid_upgraded' 
  19. ); 
  20.  
  21. foreach ( $upgrade_routines as $upgrade ) { 
  22. gmb_set_upgrade_complete( $upgrade ); 
  23.