_wp_copy_post_meta
_wp_copy_post_meta ( $source_post_id, $target_post_id, $meta_key )
Parameters:- (int) source_post_id Post ID to copy meta value(s) from.
- (int) target_post_id Post ID to copy meta value(s) to.
- (string) meta_key Meta key to copy.
Defined at: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Copy post meta for the given key from one post to another.