• Resolved pelemanindustries

    (@pelemanindustries)


    Hello,

    is there an option to also duplicate variation custom post meta along with everything else?

    I found this question in another topic from 2 years ago, there was said that you were working on developer documentation, but for the meantime check the hook woo_variation_duplicator_variation_save?,this hook located on the following file?plugin-root > includes > class-woo-variation-clone.php > 138 number line

    This file does not exist anymore, and looking into the code it is unclear how to do it.

    Could you show an example how to do it? If it works for one custom meta, I can do it for the rest also, but I need something to go on.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Emran Ahmed

    (@emranahmed)

    @pelemanindustries file location changed and updated file location is: /variation-duplicator-for-woocommerce/includes/class-variation-duplicator-for-woocommerce-variation-clone.php

    and there is two filter hook

    • woo_variation_duplicator_variation_save apply during saving duplicated variation data.
    • woo_variation_duplicator_variation_saved apply after variation duplicated.

    @emranahmed it would be beneficial for plugin users if you post some short snippet showing some example of this hook usage, e.g. we have some custom meta field called “custom_meta” and we need to copy it along with other variation properties, what code can achieve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate variation custom post meta’ is closed to new replies.