WordPress at a glance
function is not described

wp_clone() WP 2.7.0

Deprecated in 3.2.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Copy an object.

No Hooks.


Object. The cloned object.


wp_clone( $object );
$object(object) (required)
The object to clone.

Code of wp clone: wp-includes/load.php WP 5.2.1

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