WordPress at a glance

wc() WC 1.0

Main instance of WooCommerce.

Returns the main instance of WC to prevent the need to use globals.

No Hooks.

Return

WooCommerce.

Usage

wc();

Code of wc: woocommerce/woocommerce.php VER 3.5.2

<?php
function wc() {
	return WooCommerce::instance();
}

Related Functions

From category: WooCommerce

No comments
    Hello, !     Log In . Register