WooCommerce::instance()
Main WooCommerce Instance.
Description Description
Ensures only one instance of WooCommerce is loaded or can be loaded.
See also See also
Return Return
(WooCommerce) - Main instance.
Source Source
File: includes/class-woocommerce.php
127 128 129 130 131 132 | public static function instance() { if ( is_null ( self:: $_instance ) ) { self:: $_instance = new self(); } return self:: $_instance ; } |
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |