WordPress at a glance

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.0.0

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

From category: WooCommerce

No comments
    Log In