WooCommerce::instance()

Main WooCommerce Instance.


Description Description

Ensures only one instance of WooCommerce is loaded or can be loaded.

See also See also


Top ↑

Return Return

(WooCommerce) - Main instance.


Top ↑

Source Source

File: includes/class-woocommerce.php

	public static function instance() {
		if ( is_null( self::$_instance ) ) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.