_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:

Description

Copy post meta for the given key from one post to another.

Related Functions

add_post_meta, get_post_meta, update_post_meta, wp_add_post_tags, wp_get_post_tags

Top Google Results

User discussions

wpseek mobile