Plugin::__clone()

Clone.


Description

Disable class cloning and throw an error on object clone.

The whole idea of the singleton design pattern is that there is a single object. Therefore, we don’t want the object to be cloned.


Source

File: includes/libs/plugin.class.php

	public function __clone() {
		// Cloning instances of the class is forbidden.
		_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'codeflavors-vimeo-video-post-lite' ), '2.0' );
	}

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!