wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
	 * Checks if Woocommerce plugin is active and returns the proper value
	 * @return bool
	 * @since 1.4.6
	 */
Checks if Woocommerce plugin is active and returns the proper value
@return bool
@since 1.4.6
Checks if Woocommerce plugin is active and returns the proper value @return bool @since 1 . 4 . 6
function themify_is_woocommerce_active() {
		static $is = null;
		if ( $is===null ) {
			$plugin = 'woocommerce/woocommerce.php';
			include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
			return is_plugin_active( $plugin )
				&& is_file( trailingslashit( WP_PLUGIN_DIR ) . $plugin );
		}
		return $is;
	}
function themify_is_woocommerce_active ( ) { static $ is = null ; if ( $ is === null ) { $ plugin = 'woocommerce/woocommerce.php' ; include_once ( ABSPATH . 'wp-admin/includes/plugin.php' ) ; return is_plugin_active ( $ plugin ) && is_file ( trailingslashit ( WP_PLUGIN_DIR ) . $ plugin ) ; } return $ is ; }
Checks if Woocommerce plugin is active and returns the proper value
 @return bool
 @since 1.4.6
Checks if Woocommerce plugin is active and returns the proper value @return bool @since 1 . 4 . 6
// validate if $plugin actually exists, the plugin might be active however not installed.