• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Easy_Digital_Downloads::__clone() – Throw error on object clone.

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' );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: Easy_Digital_Downloads::__clone
Class ref: Easy_Digital_Downloads
Plugin ref: Easy Digital Downloads
Version: 2.9.23
Sourcefile: easy-digital-downloads.php
File ref: easy-digital-downloads.php
Deprecated?: No
API Letters: D,E

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites