WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WooCommerce::init() public WC 1.0

Init WooCommerce when WordPress Initialises.

Это метод класса: WooCommerce{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$WooCommerce = new WooCommerce();
$WooCommerce->init();

Код WooCommerce::init() WC 4.5.2

woocommerce/includes/class-woocommerce.php
<?php
public function init() {
	// Before init action.
	do_action( 'before_woocommerce_init' );

	// Set up localisation.
	$this->load_plugin_textdomain();

	// Load class instances.
	$this->product_factory                     = new WC_Product_Factory();
	$this->order_factory                       = new WC_Order_Factory();
	$this->countries                           = new WC_Countries();
	$this->integrations                        = new WC_Integrations();
	$this->structured_data                     = new WC_Structured_Data();
	$this->deprecated_hook_handlers['actions'] = new WC_Deprecated_Action_Hooks();
	$this->deprecated_hook_handlers['filters'] = new WC_Deprecated_Filter_Hooks();

	// Classes/actions loaded for the frontend and for ajax requests.
	if ( $this->is_request( 'frontend' ) ) {
		wc_load_cart();
	}

	$this->load_webhooks();

	// Init action.
	do_action( 'woocommerce_init' );
}