wp_clone() – Copy an object.

You appear to be a bot. Output may be restricted

Description

Copy an object.

Usage

$object = wp_clone( $object );

Parameters

$object
( object ) required – The object to clone.

Returns

object The cloned object.

Source

File name: wordpress/wp-includes/load.php
Lines:

1 to 4 of 4
function wp_clone( $object ) {
  // Use parens for clone to accommodate PHP 4. See #17880.
  return clone( $object );
}
 

 View on GitHub View on Trac