Created
March 31, 2019 07:51
-
-
Save Rarst/c217ad43edd368c0b116b274c529eb2a 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 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