Singleton::init()

Description #

Creates or returns an instance of this class.

Changelog #

VersionDescription
4.1.8Introduced.

Source #

File: includes/class/class-singleton.php

	public static function init() {
		if ( is_null( static::$instance ) ) {
			static::$instance = new static();
			static::$instance->run_once();
		}

		return static::$instance;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment