07-26-2023, 10:13 PM
newb whmcs module addon dev. here.
I want to be able to get the posted data and module addon info when submit the form. I believe I need to add a hook.
However, this code doesn't fire when submit:
```php
add_hook('AddonConfigSave', 1, function($vars) {
echo '<pre>';
print_r($vars);
exit;
});
```
this is on admin/configaddonmods.php page
[![enter image description here][1]][1]
[1]:
I want to be able to get the posted data and module addon info when submit the form. I believe I need to add a hook.
However, this code doesn't fire when submit:
```php
add_hook('AddonConfigSave', 1, function($vars) {
echo '<pre>';
print_r($vars);
exit;
});
```
this is on admin/configaddonmods.php page
[![enter image description here][1]][1]
[1]: