Title: Custom Fields Copying
Last modified: November 6, 2017

---

# Custom Fields Copying

 *  Resolved [maddownload](https://wordpress.org/support/users/maddownload/)
 * (@maddownload)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-copying/)
 * Hi
    When copying a post for translation I would also like to copy custom fields
   that come with it. Is it possible with Multilingual Press. I’d be even interested
   to pay for this feature as copying many custom fields that are already filled
   in one language version to the other takes a lot of time
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-copying%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Thorsten Frommen](https://wordpress.org/support/users/tfrommen/)
 * (@tfrommen)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-copying/#post-9658004)
 * Hi there,
 * yes, it is possible to copy (just **copy**, not actually individually translate)
   custom fields or metadata. You just have to provide a map of key—value pairs 
   and add it to [the `mlp_pre_save_post_meta` filter](https://github.com/inpsyde/MultilingualPress/blob/60b1b30f6ba910d04f6f6cbc8a1a9717c02529f3/src/inc/post-translator/Mlp_Translatable_Post_Data.php#L348).
   
   Add an entry for every meta value that you want the translation posts to have,
   with the key being the according meta key. You can get the original post ID via
   the second argument that gets passed to the filter (i.e., `$save_context['real_post_id']`),
   and thus fetch the original meta values.
 * I hope that helps.
 * Cheers,
    Thorsten
 *  Thread Starter [maddownload](https://wordpress.org/support/users/maddownload/)
 * (@maddownload)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-copying/#post-9660497)
 * Hi, thank you for your answer, Thorsten
    For custom fields I use the plugin called
   WordPress Meta Data Filter & Taxonomies Filter [https://wp-filter.com/](https://wp-filter.com/)
   Wouold you give me example how I do go about setting this up? Tomasz
 *  [Thorsten Frommen](https://wordpress.org/support/users/tfrommen/)
 * (@tfrommen)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-copying/#post-9666522)
 * I don’t understand. What is it that you want to set up?
 * The above filter takes an array of meta keys as keys and meta values as values,
   so you have to define the keys of the metadata you want to copy, then loop over
   it and get the values of the original post (the ID is stored in `$save_context['
   real_post_id']`).
 * That’s all, basically.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Fields Copying’ is closed to new replies.

 * ![](https://ps.w.org/multilingual-press/assets/icon-256x256.png?rev=2188271)
 * [MultilingualPress](https://wordpress.org/plugins/multilingual-press/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multilingual-press/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multilingual-press/)
 * [Active Topics](https://wordpress.org/support/plugin/multilingual-press/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multilingual-press/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multilingual-press/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Thorsten Frommen](https://wordpress.org/support/users/tfrommen/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-copying/#post-9666522)
 * Status: resolved