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


PHP WHMCS AdminClientProfileTabFields用法及代碼示例

在管理區域中查看客戶端配置文件時執行。

參數

變量 類型 注意
userid int
uuid string
firstname string
lastname string
companyname string
email string
address1 string
address2 string
city string
state string
postcode string
country string
phonenumber string
password string 用戶的加密密碼
currency int 幣種id
notes string
status string
taxexempt bool
latefeeoveride bool
overideduenotices bool
separateinvoices bool
disableautocc bool
emailoptout bool
marketing_emails_opt_in bool
overrideautoclose bool
language string
billingcid int
groupid int 客戶群id
allow_sso bool 是否為客戶端啟用了單點登錄?
olddata array 先前聯係信息的數組
authmodule string 為用戶啟用的 2Factor Auth 模塊
authdata string 用戶的 2Factor Auth 數據
email_verified bool

響應

一組鍵 -> 值參數,用於根據需要輸出其他字段。

示例代碼

<?php

add_hook('AdminClientProfileTabFields', 1, function($vars) {
    return [
        'Additional Field 1' => '<input type="text" name="additionalFieldOne" class="form-control input-150" />',
        'Additional Field 2' => '<input type="text" name="additionalFieldTwo" class="form-control input-150" />',
    ];
});

相關用法


注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 AdminClientProfileTabFields。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。