在通過 Admin 或 Client 區域添加客戶端或更新客戶端之前執行。
參數
變量 | 類型 | 注意 |
---|---|---|
firstname | string | 客戶的名字 |
lastname | string | 客戶的姓氏 |
companyname | string | 客戶的公司,如果輸入 |
string | 客戶的電子郵件 | |
address1 | string | 客戶地址1 |
address2 | string | 客戶的地址2,如果輸入 |
city | string | 客戶所在城市 |
state | string | 客戶的狀態 |
postcode | string | 客戶的郵政編碼/郵政編碼 |
country | string | 客戶的國家(2 個字符代碼) |
phonenumber | string | 客戶的電話號碼 |
tax_id | string | 客戶的稅號 |
paymentmethod | string | 如果選擇,客戶的默認付款方式 |
customfield | string | Key => Value 對的數組 |
securityqid | int | 僅來自管理區域或注冊時 |
securityqans | string | 僅來自管理區域或注冊時 |
響應
Return 接受 string
或 array
。對single
錯誤消息使用字符串或對多個錯誤消息使用字符串的array
。
示例代碼
<?php
add_hook('ClientDetailsValidation', 1, function($vars) {
return [
'Error message feedback error 1',
'Error message feedback error 2',
];
});
相關用法
- PHP WHMCS ClientDelete用法及代碼示例
- PHP WHMCS ClientAreaPageDownloads用法及代碼示例
- PHP WHMCS ClientAreaHeaderOutput用法及代碼示例
- PHP WHMCS ClientAreaPageSupportTickets用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDNSManagement用法及代碼示例
- PHP WHMCS ClientAreaPageAffiliates用法及代碼示例
- PHP WHMCS ClientAreaPageViewInvoice用法及代碼示例
- PHP WHMCS ClientAreaPageProductsServices用法及代碼示例
- PHP WHMCS ClientAreaPageDomainRegisterNameservers用法及代碼示例
- PHP WHMCS ClientAreaPageUnsubscribe用法及代碼示例
- PHP WHMCS ClientAreaPageConfigureSSL用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDetails用法及代碼示例
- PHP WHMCS ClientAreaPageAddonModule用法及代碼示例
- PHP WHMCS ClientAreaPageContact用法及代碼示例
- PHP WHMCS ClientAreaPageSecurity用法及代碼示例
- PHP WHMCS ClientAreaPage用法及代碼示例
- PHP WHMCS ClientChangePassword用法及代碼示例
- PHP WHMCS ClientAreaProductDetailsOutput用法及代碼示例
- PHP WHMCS ClientAreaDomainDetailsOutput用法及代碼示例
- PHP WHMCS ClientAreaPageDomainEmailForwarding用法及代碼示例
- PHP WHMCS ClientAreaPageDomainAddons用法及代碼示例
- PHP WHMCS ClientAreaPageAddFunds用法及代碼示例
- PHP WHMCS ClientAreaPageBulkDomainManagement用法及代碼示例
- PHP WHMCS ClientAreaRegister用法及代碼示例
- PHP WHMCS ClientAreaPaymentMethods用法及代碼示例
注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 ClientDetailsValidation。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。