跳至主要内容

Action: wu_checkout_order_created

在結帳訂單完全建立之後觸發。

外掛程式可以使用此動作來為具有獨立計費週期的產品建立次要會員資格。

參數

名稱類型描述
$order\WP_Ultimo\Checkout\Cart購物車/訂單物件。
$customer\WP_Ultimo\Models\Customer客戶物件。
$membership\WP_Ultimo\Models\Membership主要會員資格。
$payment\WP_Ultimo\Models\Payment付款物件。

  • 2.5.0

來源

定義於 inc/checkout/class-checkout.php 的第 891 行