List of MailWizz hooks?

Lakjin

Active Member
Is there documentation listing all MailWizz hooks? Im specifically looking for a filter that runs before any email is sent by MailWizz (transactional, welcome email, subscription confirm, campaign, etc.) so I can add someone to each email we send.
 

twisted1919

Administrator
Staff member
@Lakjin - you're looking for the 'delivery_server_before_send_email' filter hook:
PHP:
Yii::app()->hooks->addFilter('delivery_server_before_send_email', function($params, $server){
    // do something here.

    // done
    return $params;
});

You can find all mailwizz filters with:
Code:
grep -niro 'hooks->applyFilters(' /path/to/mailwizz
and all actions with:
Code:
grep -niro 'hooks->doAction(' /path/to/mailwizz
 
Top