Only the "$formName" variable is getting supplied to the hook callback. Why are the rest of the variables listed in the documentation not getting supplied?
add_action('civicrm_postProcess', 'onFormSubmit');
function onFormSubmit() {
$args = func_get_args(); // Returns ["CRM_Contribute_Form_Contribution"]
}
https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postProcess/