Skip to content

Commit 05afc5e

Browse files
authored
Merge pull request #3616 from dparker1005/email-log-generic
Updating the email log to work for non-PMPro emails
2 parents 27ae590 + f82db2f commit 05afc5e

3 files changed

Lines changed: 360 additions & 76 deletions

File tree

classes/class.pmproemail.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,19 @@ function sendEmail($email = NULL, $from = NULL, $fromname = NULL, $subject = NUL
332332
}
333333
}
334334

335+
/**
336+
* Fires before a PMPro email is sent via wp_mail.
337+
*
338+
* @since TBD
339+
*
340+
* @param PMProEmail $this The email object.
341+
*/
342+
do_action( 'pmpro_before_email_sent', $this );
343+
335344
$result = wp_mail($this->email,$this->subject,$this->body,$this->headers,$this->attachments);
336345

337346
/**
338-
* Fires after an email is sent via wp_mail.
347+
* Fires after a PMPro email is sent via wp_mail.
339348
*
340349
* @since 3.7
341350
*

0 commit comments

Comments
 (0)