Warning: This function has been deprecated.
wp_clone( object $object )
Copy an object.
Description Description
Parameters Parameters
- $object
-
(object) (Required) The object to clone.
Return Return
(object) The cloned object.
Source Source
File: wp-includes/load.php
802 803 804 805 | function wp_clone( $object ) { // Use parens for clone to accommodate PHP 4. See #17880 return clone ( $object ); } |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.2.0 | This function has been deprecated. |
2.7.0 | Introduced. |