如何在whmcs钩子中获取客户端服务自定义字段值?

时间:2018-03-26 20:23:46

标签: hook whmcs

如何在whmcs hook中获取客户端服务自定义字段值?

我想在AfterModuleCreate hook上做点什么。

1 个答案:

答案 0 :(得分:1)

根据docs,摘要会收到module parameters

add_hook('AfterModuleCreate', 1, function($vars) {

    $customFields = $vars['params']['customfields'];
    $fieldValue = $customFields['FieldName'];

});
相关问题