WordPress at Your Fingertips

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 5.5.2

<?php
// Initialize dependency injection.
$GLOBALS['wc_container'] = new Automattic\WooCommerce\Container();

From category: WooCommerce

No comments
    Log In