作为正在编辑的产品执行。
参数
| 变量 | 类型 | 注意 |
|---|---|---|
| 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...
});
相关用法
- PHP WHMCS ProductAddonDelete用法及代码示例
- PHP WHMCS ProductDelete用法及代码示例
- PHP WHMCS PreAutomationTask用法及代码示例
- PHP WHMCS PreModuleRenew用法及代码示例
- PHP WHMCS PremiumPriceOverride用法及代码示例
- PHP WHMCS PreModuleProvisionAddOnFeature用法及代码示例
- PHP WHMCS PreRegistrarGetDNS用法及代码示例
- PHP WHMCS PreRegistrarGetNameservers用法及代码示例
- PHP WHMCS PreRegistrarSaveContactDetails用法及代码示例
- PHP WHMCS PreEmailSendReduceRecipients用法及代码示例
- PHP WHMCS PreRegistrarRenewDomain用法及代码示例
- PHP WHMCS PreModuleCreate用法及代码示例
- PHP WHMCS PreFraudCheck用法及代码示例
- PHP WHMCS PreCalculateCartTotals用法及代码示例
- PHP WHMCS PreRegistrarTransferDomain用法及代码示例
- PHP WHMCS PreModuleSuspendAddOnFeature用法及代码示例
- PHP WHMCS PreRegistrarGetContactDetails用法及代码示例
- PHP WHMCS PreUpgradeCheckout用法及代码示例
- PHP WHMCS PreModuleChangePassword用法及代码示例
- PHP WHMCS PreRegistrarGetEPPCode用法及代码示例
- PHP WHMCS PreShoppingCartCheckout用法及代码示例
- PHP WHMCS PreModuleDeprovisionAddOnFeature用法及代码示例
- PHP WHMCS PreModuleCustom用法及代码示例
- PHP WHMCS PreDomainRegister用法及代码示例
- PHP WHMCS PreServiceEdit用法及代码示例
注:本文由纯净天空筛选整理自whmcs.com大神的英文原创作品 ProductEdit。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
