Warning: This function has been deprecated.

wp_clone() WordPress Function

The wp_clone() function is a powerful tool for copying and migrating WordPress sites. This function can be used to clone a site from one location to another, or to migrate a site from one server to another.

wp_clone( object $object ) #

Copy an object.


Parameters

$object

(object)(Required)The object to clone.


Top ↑

Return

(object) The cloned object.


Top ↑

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
VersionDescription
3.2.0This function has been deprecated.
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.