如何在 whmcs 挂钩中获取客户端服务自定义字段值?
How to get client service custom fields value in the whmcs hook?
如何在 whmcs 挂钩中获取客户端服务自定义字段值?
我想在 AfterModuleCreate 挂钩上做点什么。
根据docs, the hook will receive the module parameters:
add_hook('AfterModuleCreate', 1, function($vars) {
$customFields = $vars['params']['customfields'];
$fieldValue = $customFields['FieldName'];
});
如何在 whmcs 挂钩中获取客户端服务自定义字段值?
我想在 AfterModuleCreate 挂钩上做点什么。
根据docs, the hook will receive the module parameters:
add_hook('AfterModuleCreate', 1, function($vars) {
$customFields = $vars['params']['customfields'];
$fieldValue = $customFields['FieldName'];
});