woops_init

The WooCommerce Predictive Search LITE woops init function.

Description

woops_init(); 

Usage

  1. if ( !function_exists( 'woops_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-predictive-search-lite/admin/wc-predictive-search-init.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woops_init(); 
  7.  

Defined (1)

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

/admin/wc-predictive-search-init.php  
  1. function woops_init() { 
  2. if ( get_option('wc_predictive_search_just_installed') ) { 
  3. delete_option('wc_predictive_search_just_installed'); 
  4.  
  5. @set_time_limit(86400); 
  6. @ini_set("memory_limit", "1000M"); 
  7.  
  8. global $wc_ps_synch; 
  9. $wc_ps_synch->synch_full_database(); 
  10.  
  11. update_option('wc_predictive_search_just_confirm', 1); 
  12. wp_redirect( admin_url( 'admin.php?page=woo-predictive-search', 'relative' ) ); 
  13. exit; 
  14. load_plugin_textdomain( 'woops', false, WOOPS_FOLDER.'/languages' );