wcpgsk_init

The Woocommerce Poor Guys Swiss Knife wcpgsk init function.

Description

wcpgsk_init(); 

Usage

  1. if ( !function_exists( 'wcpgsk_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-poor-guys-swiss-knife/woocommerce-poor-guys-swiss-knife.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcpgsk_init(); 
  7.  

Defined (1)

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

/woocommerce-poor-guys-swiss-knife.php  
  1. function wcpgsk_init() { 
  2. global $wcpgsk, $wcpgsk_about, $wcpgsk_options, $wcpgsk_session, $wcpgsk_woocommerce_active;  
  3. //only continue loading 
  4. if ( $wcpgsk_woocommerce_active && version_compare( WOOCOMMERCE_VERSION, "2.0" ) >= 0 ) { 
  5. $wcpgsk_options = get_option('wcpgsk_settings', true); 
  6. require_once( 'classes/woocommerce-poor-guys-swiss-knife.php' ); 
  7. require_once( 'classes/woocommerce-poor-guys-swiss-knife-about.php' );  
  8. require_once( 'wcpgsk-af.php' ); 
  9.  
  10. if ( !is_admin() ) : 
  11. add_action( 'plugins_loaded', 'wcpgsk_load_wcsession_helper' ); 
  12. endif; 
  13. //load into our global 
  14. $wcpgsk = new WCPGSK_Main( __FILE__ ); 
  15. $wcpgsk->version = '2.2.1';  
  16. $wcpgsk->wcpgsk_hook_woocommerce_filters(); 
  17.  
  18.  
  19. } elseif ( version_compare( WOOCOMMERCE_VERSION, "2.0" ) < 0 ) { 
  20. return; 
  21. } else { 
  22. return;