【发布时间】:2018-03-27 19:51:49
【问题描述】:
如何在 whmcs 挂钩中获取客户端服务自定义字段值?
我想在 AfterModuleCreate 钩子上做点什么。
【问题讨论】:
如何在 whmcs 挂钩中获取客户端服务自定义字段值?
我想在 AfterModuleCreate 钩子上做点什么。
【问题讨论】:
根据docs,钩子会收到module parameters:
add_hook('AfterModuleCreate', 1, function($vars) {
$customFields = $vars['params']['customfields'];
$fieldValue = $customFields['FieldName'];
});
【讨论】:
'chave' => $params['configoptions']["Chave"] 获取自定义字段值,但我没有得到它。你能帮助我吗?看图:prnt.sc/p04bdc