Last active
March 14, 2018 20:28
-
-
Save nandomoreirame/599efb41d7dda5a6d9cbb84b96345800 to your computer and use it in GitHub Desktop.
show wp_mail() errors
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 | |
| /* | |
| * show wp_mail() errors | |
| */ | |
| add_action( 'wp_mail_failed', 'onMailError', 10, 1 ); | |
| function onMailError( $wp_error ) { | |
| echo '<pre>' . print_r($wp_error , true ) . '</pre>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment