Created
May 18, 2020 13:20
-
-
Save tobeyadr/dc9269b3f9d573bb09b86c6ddb684408 to your computer and use it in GitHub Desktop.
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 | |
if ( ! function_exists( 'wp_mail' ) ): | |
function wp_mail( $to='', $subject='', $body='', $headers='', $attachments=[] ){ | |
do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', 'Domain based email disabled.' ) ); | |
return false; | |
} | |
endif; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment