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 Settings Default from Admin Init 
  6. global $wc_predictive_search_admin_init; 
  7. $wc_predictive_search_admin_init->set_default_settings(); 
  8.  
  9. // Build sass 
  10. global $wc_predictive_search_less; 
  11. $wc_predictive_search_less->plugin_build_sass(); 
  12.  
  13. update_option( 'wc_predictive_search_just_confirm', 1 ); 
  14. wp_redirect( admin_url( 'admin.php?page=woo-predictive-search&tab=performance-settings&box_open=predictive_search_synch_data#predictive_search_synch_data', 'relative' ) ); 
  15. exit; 
  16.