WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp clone

Contents

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