wc_dynamic_gallery_install

The WooCommerce Dynamic Gallery LITE wc dynamic gallery install function.

Description

wc_dynamic_gallery_install(); 

Usage

  1. if ( !function_exists( 'wc_dynamic_gallery_install' ) ) { 
  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 = wc_dynamic_gallery_install(); 
  7.  

Defined (1)

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

/admin/wc_gallery_woocommerce_admin.php  
  1. function wc_dynamic_gallery_install() { 
  2. update_option('a3rev_woo_dgallery_lite_version', '2.3.4'); 
  3. update_option('a3_dynamic_gallery_db_version', WOO_DYNAMIC_GALLERY_DB_VERSION); 
  4.  
  5. // Set Settings Default from Admin Init 
  6. global $wc_dgallery_admin_init; 
  7. $wc_dgallery_admin_init->set_default_settings(); 
  8.  
  9. // Build sass 
  10. global $wc_wc_dynamic_gallery_less; 
  11. $wc_wc_dynamic_gallery_less->plugin_build_sass(); 
  12.  
  13. delete_metadata( 'user', 0, $wc_dgallery_admin_init->plugin_name . '-' . 'plugin_framework_global_box' . '-' . 'opened', '', true ); 
  14.  
  15.  
  16. update_option('a3rev_woo_dgallery_just_installed', true);