-
-
Save WProbot/420a069b40adcd2ada188f2dd2aaecab to your computer and use it in GitHub Desktop.
A simple mu–plugin snippet for overriding and logging WP emails in development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class R_Mailer { | |
| function Send() { | |
| error_log( wp_debug_backtrace_summary() ); | |
| } | |
| } | |
| add_action( 'phpmailer_init', function( &$mailer ) { | |
| $mailer = new R_Mailer(); | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment