WC() – Returns the main instance of WC.

You appear to be a bot. Output may be restricted

Description

Returns the main instance of WC.

Usage

$WooCommerce = WC();

Parameters

Returns

WooCommerce

Source

File name: woocommerce/woocommerce.php
Lines:

1 to 3 of 3
function WC() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
  return WooCommerce::instance();
}
 

 View on GitHub View on Trac