wc_version

The WooCommerce Beans wc version function.

Description

wc_version(); 

Usage

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

Defined (1)

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

/woocommerce-beans.php  
  1. function wc_version() { 
  2. if ( ! function_exists( 'get_plugins' ) ) 
  3. require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
  4. $plugin_folder = get_plugins( '/woocommerce' ); 
  5. return $plugin_folder['woocommerce.php']['Version'];