WC
Main instance of WooCommerce.
Description
WC();
Returns the main instance of WC to prevent the need to use globals.
Usage
if ( !function_exists( 'WC' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce/woocommerce.php'; } // NOTICE! Understand what this does before running. $result = WC();
Defined (1)
The function is defined in the following location(s).
- /woocommerce.php
- function WC() {
- return WooCommerce::instance();
- }