This function has been deprecated.

wp_clone( object $object )

Copy an object.


Parameters

$object

(Required) The object to clone.


Return

(object) The cloned object.


Source

File: wp-includes/load.php

function wp_clone( $object ) {
	// Use parens for clone to accommodate PHP 4. See https://core.trac.wordpress.org/ticket/17880
	return clone( $object );
}

Changelog

Changelog
Version Description
WP-3.2.0 This function has been deprecated.
WP-2.7.0 Introduced. This function has been deprecated.