當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。