Support » Plugin: WC Duplicate Order » How to hook in?

  • Resolved rainer4th

    (@rainer4th)


    Hi Jamie,

    Thank you for this useful plugin. It helps us to organize exchanges in our store. What we would like to add is: every time an order is duplicated, a script should be triggered that sends the new order data to Airtable. The script is working, but we cannot find a way to hook into the WC Duplicate Order process.

    Could you tell us how to do the trick?

    Thank you!

    Rainer

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jamie Gill

    (@patchgill)

    Hi Rainer,

    I currently only have hooks in the plugin to add custom order fields. What kind of data are you trying to pass via the clone order functionality and at what point?

    Many Thanks
    Jamie

    Thread Starter rainer4th

    (@rainer4th)

    Hi Jamie,

    Thank you for your anwser. I found the solution already two weeks ago.

    For those who look for an answer for my question: I found out that you can hook in the Duplicate Order script with this add_action in function.php:

    add_action(‘clone_custom_order_fields’,’my_custom_function’,10,2);

    It works! Thank you!

    Rainer

    Plugin Author Jamie Gill

    (@patchgill)

    Great marking as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hook in?’ is closed to new replies.