A WordPress-centric search engine for devs and theme authors



wp_clone ›

Since2.7.0
Deprecated3.2.0
wp_clone ( $object )
Parameters:
  • (object) $object The object to clone.
    Required: Yes
Returns:
  • (object) The cloned object.
Defined at:
Codex:

Copy an object.



Source

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