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


Top ↑

Source Source

File: includes/class-wc-shipping.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.