wp_clone()
Deprecated from version 3.2.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Clones an object.
No Hooks.
Return
Object
. The cloned object.
Usage
wp_clone( $input_object );
- $input_object(object) (required)
- The object to clone.
Changelog
Since 2.7.0 | Introduced. |
Deprecated since | 3.2.0 |
wp_clone() wp clone code WP 6.5.2
function wp_clone( $input_object ) { // Use parens for clone to accommodate PHP 4. See #17880. return clone( $input_object ); }