WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp clone

Description

Copy an object.

Parameters

$object
(object) (required) The object to clone
Default: None

Return Values

(object) 
The cloned object

Change Log

Since: 2.7

Source File

wp_clone() is located in wp-includes/load.php