• Resolved Nicolas RIVIERE

    (@undefinedfr)


    Hi !

    Thank you for your plugin.
    Would it be possible to add a few hooks in the code to make it easier for developers to extend its functionality?

    For example, in the wizbee_duplicate_order_logic method:

    • A do_action before the wc_create_order call, to run custom code before the order is created.
    • A do_action before the order’s save method, to run custom code before the order is registered.

    Thank you in advance for considering this request.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Added three hooks

    wizbee_before_order_duplicate: Before the duplicate process starts.
    wizbee_before_duplicate_order_save: Just before the new order saves. If you want to add any custom data to the new order, you can use this hook.
    wizbee_after_order_duplicated: After order saved but before redirect to the new order edit page.

    Thread Starter Nicolas RIVIERE

    (@undefinedfr)

    Thank a lot !

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

You must be logged in to reply to this topic.