woo_dgallery_lite_upgrade_plugin

The WooCommerce Dynamic Gallery LITE woo dgallery lite upgrade plugin function.

Description

woo_dgallery_lite_upgrade_plugin(); 

Usage

  1. if ( !function_exists( 'woo_dgallery_lite_upgrade_plugin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-dynamic-gallery-lite/admin/wc_gallery_woocommerce_admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woo_dgallery_lite_upgrade_plugin(); 
  7.  

Defined (1)

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

/admin/wc_gallery_woocommerce_admin.php  
  1. function woo_dgallery_lite_upgrade_plugin () { 
  2.  
  3. // Upgrade to 1.5.0 
  4. if( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '1.5.0') === -1 ) { 
  5. update_option('a3rev_woo_dgallery_lite_version', '1.5.0'); 
  6.  
  7. // Build sass 
  8. global $wc_wc_dynamic_gallery_less; 
  9. $wc_wc_dynamic_gallery_less->plugin_build_sass(); 
  10.  
  11. // Upgrade to 1.6.0 
  12. if ( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '1.6.0') === -1 ) { 
  13. update_option('a3rev_woo_dgallery_lite_version', '1.6.0'); 
  14. include( WOO_DYNAMIC_GALLERY_FILE_PATH. '/includes/updates/update-1.6.0.php' ); 
  15.  
  16. // Upgrade to 1.8.0 
  17. if ( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '1.8.0') === -1 ) { 
  18. update_option('a3rev_woo_dgallery_lite_version', '1.8.0'); 
  19. include( WOO_DYNAMIC_GALLERY_FILE_PATH. '/includes/updates/update-1.8.0.php' ); 
  20.  
  21. // Upgrade to 2.0.0 
  22. if ( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '2.0.0') === -1 ) { 
  23. update_option('a3rev_woo_dgallery_lite_version', '2.0.0'); 
  24. include( WOO_DYNAMIC_GALLERY_FILE_PATH. '/includes/updates/update-2.0.0.php' ); 
  25.  
  26. // Upgrade to 2.1.0 
  27. if ( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '2.1.0') === -1 ) { 
  28. update_option('a3rev_woo_dgallery_lite_version', '2.1.0'); 
  29. update_option('wc_dgallery_lite_clean_on_deletion', 'no'); 
  30. update_option('a3_dynamic_gallery_db_updated', 'no'); 
  31.  
  32. // Upgrade to 2.1.1 
  33. if ( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '2.2.0') === -1 ) { 
  34. update_option('a3rev_woo_dgallery_lite_version', '2.2.0'); 
  35. update_option('woo_dynamic_gallery_style_version', time() ); 
  36.  
  37. // Upgrade to 2.3.0 
  38. if( version_compare(get_option('a3rev_woo_dgallery_lite_version'), '2.3.0') === -1 ) { 
  39. update_option('a3rev_woo_dgallery_lite_version', '2.3.0'); 
  40.  
  41. // Build sass 
  42. global $wc_wc_dynamic_gallery_less; 
  43. $wc_wc_dynamic_gallery_less->plugin_build_sass(); 
  44.  
  45. update_option('a3rev_woo_dgallery_lite_version', '2.3.4');