Created
February 1, 2015 11:33
-
-
Save kilbot/1629c80ff1443dc5e7fa to your computer and use it in GitHub Desktop.
Add to the theme functions.php
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
function log_all_emails($mail) { | |
error_reporting(0); | |
$log = new WC_Logger(); | |
$log->add('woocommerce-pos', print_r($mail, true)); | |
return $mail; | |
} | |
add_filter( 'wp_mail', 'log_all_emails' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment