跳到主要内容

动作: wu_maybe_create_customer

允许插件开发者在添加客户时执行额外操作。

这里我们在主站点添加 customer->user 的钩子,例如。

参数

名称类型描述
$customer\Customer可能已创建的客户。
$checkout\Checkout当前结账类。

  • 2.0.0

源码

定义于 inc/checkout/class-checkout.php 在第 1156 行