You appear to be a bot. Output may be restricted
Description
Throw 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.
Usage
$void = Easy_Digital_Downloads::__clone();
Parameters
Returns
void
Source
File name: easy-digital-downloads/easy-digital-downloads.php
Lines:
1 to 4 of 4
public function __clone() { // Cloning instances of the class is forbidden. _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'easy-digital-downloads' ), '1.6' ); }