WordPress at Your Fingertips
function is not described

WC_Queue::instance() public WC 1.0

Single instance of WC_Queue_Interface

{} It's a method of the class: WC_Queue{}

No Hooks.

Return

WC_Queue_Interface.

Usage

$result = WC_Queue::instance();

Code of WC_Queue::instance() WC 5.9.0

final public static function instance() {

	if ( is_null( self::$instance ) ) {
		$class          = self::get_class();
		self::$instance = new $class();
		self::$instance = self::validate_instance( self::$instance );
	}
	return self::$instance;
}