checkWooNotices

Check if WooCommerce is up and running.

Description

(null) checkWooNotices(); 

Returns (null)


Usage

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

Defined (1)

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

/woocommerce-autocomplete-order.php  
  1. function checkWooNotices() 
  2. if (!is_plugin_active('woocommerce/woocommerce.php')) { 
  3. ob_start(); 
  4. ?><div class="error"> 
  5. <p><strong><?php _e('WARNING', 'wooExtraOptions'); ?></strong>: <?php _e('WooCommerce is not active and WooCommerce Autocomplete Order will not work!', 'wooExtraOptions'); ?></p> 
  6. </div><?php 
  7. echo ob_get_clean();