Plugin::instance()

Instance.


Description

Ensures only one instance of the plugin class is loaded or can be loaded.


Return

(\Vimeotheque\Plugin)


Source

File: includes/libs/plugin.class.php

	public static function instance() {
		if ( is_null( self::$instance ) ) {
			self::$instance = new self();

			/**
			 * Triggered when Vimeotheque has loaded.
			 * Fires when Vimeotheque was fully loaded and instantiated.
			 *
			 * @since 2.0
			 */
			do_action( 'vimeotheque_loaded' );
		}

		return self::$instance;
	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!