WC_Shipping::instance()
Main WC_Shipping Instance.
Ensures only one instance of WC_Shipping is loaded or can be loaded.
Method of the class: WC_Shipping{}
No Hooks.
Return
WC_Shipping
. Main instance
Usage
$result = WC_Shipping::instance();
Changelog
Since 2.1 | Introduced. |
WC_Shipping::instance() WC Shipping::instance code WC 9.4.2
public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; }