wpc_init

The WooCommerce Putler Connector wpc init function.

Description

wpc_init(); 

Usage

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

Defined (1)

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

/woocommerce-putler-connector.php  
  1. function wpc_init() { 
  2.  
  3. include_once 'classes/class.putler-connector.php'; 
  4. $GLOBALS[putler_connector] = Putler_Connector::getInstance(); 
  5.  
  6. include_once 'classes/class.putler-connector-woocommerce.php'; 
  7. if ( !isset( $GLOBALS[woocommerce_putler_connector] ) ) { 
  8. $GLOBALS[woocommerce_putler_connector] = new WooCommerce_Putler_Connector();