在使用WooCommerce REST-API创建的后订单上需要触发的钩子是什么?
当通过WooCommerce通过REST-API创建订单时,我需要钩子才能触发。
我尝试过的钩子在下面,它们都没有用。
save_post_shop_order
woocommerce_api_create_order
woocommerce_new_order
woocommerce_thankyou
woocommerce_rest_prepare_shop_order_object
I need the hook to trigger when an order is created via REST-API with WooCommerce.
The hooks I tried are below and none of them worked.
save_post_shop_order
woocommerce_api_create_order
woocommerce_new_order
woocommerce_thankyou
woocommerce_rest_prepare_shop_order_object
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
REST_INSERT_SHOP_ORDER
使用此钩子。创建或更新单个帖子后的火灾通过REST API 。
rest_insert_shop_order
Use this hook.Fires after a single post is created or updated via the REST API.