wcpgsk_activation

The Woocommerce Poor Guys Swiss Knife wcpgsk activation function.

Description

wcpgsk_activation(); 

Usage

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

Defined (1)

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

/woocommerce-poor-guys-swiss-knife.php  
  1. function wcpgsk_activation() { 
  2. global $wcpgsk_woocommerce_active; 
  3. if ( !$wcpgsk_woocommerce_active ) : 
  4. deactivate_plugins( plugin_basename( __FILE__ ) );  
  5. return new WP_Error( 'dependency', __( 'You have to install and activate WooCommerce before you can use <strong>' . WCPGSK_NAME . '</strong>', WCPGSK_DOMAIN ) );  
  6. //wp_die( ); 
  7. endif;