wcap_installation_notice

Display Notice if woocommerce is not installed.

Description

wcap_installation_notice(); 

Usage

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

Defined (1)

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

/woocommerce-coupon-selector.php  
  1. function wcap_installation_notice() { 
  2. echo '<div class="updated" style="padding:15px; position:relative;"><a href="http://wordpress.org/plugins/woocommerce/">'.__('Woocommerce', 'dpta').'</a> must be installed and activated before using this plugin. </div>';