Tribe__Main::instance( mixed $context = null )
Get (and instantiate, if necessary) the instance of the class
Contents
Parameters
- $context
-
(mixed) (Optional) An instance of the Main class of the plugin that instantiated Common
Default value: null
Return
(self)
Source
File: src/Tribe/Main.php
public static function instance( $context = null ) {
if ( ! self::$instance ) {
self::$instance = new self( $context );
}
return self::$instance;
}