WC_Shipping::instance()
Main WC_Shipping Instance.
Description Description
Ensures only one instance of WC_Shipping is loaded or can be loaded.
Return Return
(WC_Shipping) Main instance
Source Source
File: includes/class-wc-shipping.php
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1 | Introduced. |