wc() WC 1.0
Main instance of WooCommerce.
No Hooks.
Return
Null. Nothing.
Usage
// Initialize dependency injection.;
Changelog
Since 2.1 | Introduced. |
Code of wc() wc WC 5.0.0
// Initialize dependency injection.
$GLOBALS['wc_container'] = new Automattic\WooCommerce\Container();