wcpgsk_plugin_activation_message

The Woocommerce Poor Guys Swiss Knife wcpgsk plugin activation message function.

Description

wcpgsk_plugin_activation_message(); 

Usage

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

Defined (1)

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

/woocommerce-poor-guys-swiss-knife.php  
  1. function wcpgsk_plugin_activation_message() { 
  2. //step out with message 
  3. global $wcpgsk_woocommerce_active; 
  4. if ( !$wcpgsk_woocommerce_active ) : 
  5. deactivate_plugins( plugin_basename( __FILE__ ) );  
  6. $html = '<div class="error">'; 
  7. $html .= '<p>'; 
  8. $html .= __( 'You have to install and activate WooCommerce before you can use <strong>' . WCPGSK_NAME . '</strong>', WCPGSK_DOMAIN ); 
  9. $html .= '</p>'; 
  10. $html .= '</div><!-- /.updated -->'; 
  11. echo $html; 
  12.  
  13. endif;