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.
Contents
Parameters
- $object
(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 #17880.
return clone( $object );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.2.0 | This function has been deprecated. |
| 2.7.0 | Introduced. |