Tribe__Main::instance( mixed $context = null )

Get (and instantiate, if necessary) the instance of the class


Parameters

$context

(mixed) (Optional) An instance of the Main class of the plugin that instantiated Common

Default value: null


Top ↑

Return

(self)


Top ↑

Source

File: src/Tribe/Main.php

	public static function instance( $context = null ) {
		if ( ! self::$instance ) {
			self::$instance = new self( $context );
		}

		return self::$instance;
	}