Hook sendMailAlterTemplateVars

Information

Alter template vars on the fly:

This hook is called when Mail::send() is called

Hook locations:

  • front office

Located in:

Call of the Hook in the origin file

Hook::exec(
            'sendMailAlterTemplateVars',
            [
                'template' => $template,
                'template_vars' => &$templateVars,
            ]
        )