在自動重新計算溢價域價格時執行。
參數
變量 | 類型 | 注意 |
---|---|---|
domainName | string | 完整的域名 |
tld | string | 域的 tld,例如 whmcs.com 中的 com |
sld | string | 域的 sld 例如 whmcs.com 中的 whmcs |
renew | float | 在任何應用標記之前域的當前續訂成本。 |
響應
接受返回以覆蓋續訂價格或跳過應用加價。例如:返回數組(‘renew’ => 50.00,'skipMarkup' => true);
示例代碼
<?php
add_hook('PremiumPriceRecalculationOverride', 1, function($vars) {
// Perform hook code here...
});
相關用法
- PHP WHMCS PremiumPriceOverride用法及代碼示例
- PHP WHMCS PreAutomationTask用法及代碼示例
- PHP WHMCS PreModuleRenew用法及代碼示例
- 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用法及代碼示例
- PHP WHMCS PreModuleTerminate用法及代碼示例
- PHP WHMCS PreDeleteClient用法及代碼示例
注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 PremiumPriceRecalculationOverride。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。