当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。