wpc_activate

Registers a plugin function to be run when the plugin is activated.

Description

wpc_activate(); 

Usage

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

Defined (1)

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

/woocommerce-putler-connector.php  
  1. function wpc_activate() { 
  2. // Redirect to WPC 
  3. update_option( '_wpc_activation_redirect', 'pending' );