Warning: This function has been deprecated.

wp_clone( object $object )

Copy an object.


Parameters Parameters

$object

(object) (Required) The object to clone.


Top ↑

Return Return

(object) The cloned object.


Top ↑

Source Source

File: wp-includes/load.php

function wp_clone( $object ) {
	// Use parens for clone to accommodate PHP 4. See #17880.
	return clone( $object );
}

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.