Home  >  Q&A  >  body text

What hooks need to be triggered for post orders created using WooCommerce REST-API?

I need to trigger a hook when creating an order via REST-API using WooCommerce.

The hooks I have tried are as follows, but none of them work.

save_post_shop_order
woocommerce_api_create_order
woocommerce_new_order
woocommerce_thankyou
woocommerce_rest_prepare_shop_order_object

P粉373596828P粉373596828178 days ago325

reply all(1)I'll reply

  • P粉415632319

    P粉4156323192024-03-29 11:51:30

    rest_insert_shop_order Use this hook.

    Triggered after creating or updating a single post via REST API.

    reply
    0
  • Cancelreply