我需要在WooCommerce通过REST-API创建订单时触发该钩子。
我试过的钩子在下面,它们都不起作用。
save_post_shop_order
woocommerce_api_create_order
woocommerce_new_order
woocommerce_thankyou
woocommerce_rest_prepare_shop_order_object
rest_insert_shop_order
使用此钩子
在通过REST API创建或更新一个帖子后触发。