acf_copy_postmeta()ACF 5.3.8

Deprecated since 5.7.11. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

acf_copy_postmeta

Copies meta from one post to another. Useful for saving and restoring revisions.

No Hooks.

Returns

null. Nothing (null).

Usage

acf_copy_postmeta( $from_post_id, $to_post_id );
$from_post_id(int)
The post id to copy from.
$to_post_id(int)
The post id to paste to.

Changelog

Since 5.3.8 Introduced.
Deprecated since 5.7.11

acf_copy_postmeta() code ACF 6.0.4

function acf_copy_postmeta( $from_post_id = 0, $to_post_id = 0 ) {
	return acf_copy_metadata( $from_post_id, $to_post_id );
}