wp_clone( object $input_object ): object

In this article

This function has been deprecated.

Clones an object.

Parameters

$input_objectobjectrequired
The object to clone.

Return

object The cloned object.

Source

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

Changelog

VersionDescription
3.2.0This function has been deprecated.
2.7.0Introduced.

User Contributed Notes

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