最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WooCommerce Hook after Billing form completed, but before payment Gateway

programmeradmin0浏览0评论

In Woocommerce, I need to call a function after than the client completed the billing form, but before the payment gateway. This function needs to use the billing form informations... Is there a Hook for that, and how can I retrieve the users infos ?

In Woocommerce, I need to call a function after than the client completed the billing form, but before the payment gateway. This function needs to use the billing form informations... Is there a Hook for that, and how can I retrieve the users infos ?

Share Improve this question asked Feb 11, 2020 at 15:50 Nathos8Nathos8 32 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This action hook is performed after submission:

add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) { 
    echo $order_id;
}
发布评论

评论列表(0)

  1. 暂无评论