当前位置: 首页>>编程示例 >>用法及示例精选 >>正文


PHP WHMCS ProductEdit用法及代码示例

作为正在编辑的产品执行。

参数

变量 类型 注意
pid int 正在保存的产品的 ID。
type string
gid int 产品所属的组 id
name string
description string
welcomeemail int 欢迎邮件的id
showdomainoptions bool
stockcontrol bool
qty int
tax bool
is_featured bool
hidden bool
retired bool
paytype string
allowqty bool
recurringcycles int
autoterminatedays int
autoterminateemail int
proratabilling bool
proratadate int
proratachargenextmonth int
servertype string
servergroup int
autosetup string
configoptionsupgrade bool
upgradeemail int
freedomain string
freedomainpaymentterms string
freedomaintlds string
affiliatepaytype string
affiliatepayamount float
affiliateonetime bool
subdomain string
overagesenabled bool
overagesdisklimit int
overagesbwlimit int
overagesdiskprice float
overagesbwprice float
configoptionX string int

响应

不支持响应

示例代码

<?php
add_hook('ProductEdit', 1, function($vars) {
    // Perform hook code here...
});

相关用法


注:本文由纯净天空筛选整理自whmcs.com大神的英文原创作品 ProductEdit。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。