summaryrefslogtreecommitdiff
path: root/Postman/extra
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
commitca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6 (patch)
tree40ff112761d82af1d8c1c89d30ede8206502e17b /Postman/extra
parent8812fbf61bde539d1599e239044595ccb8a2c3a5 (diff)
downloadPost-SMTP-ca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6.zip
release
Diffstat (limited to 'Postman/extra')
-rw-r--r--Postman/extra/no-localhost-mails.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Postman/extra/no-localhost-mails.php b/Postman/extra/no-localhost-mails.php
new file mode 100644
index 0000000..0c45778
--- /dev/null
+++ b/Postman/extra/no-localhost-mails.php
@@ -0,0 +1,9 @@
+<?php
+/**
+* Plugin Name: No localhost emails
+* Description: Overwrites WP pluggable function wp_mail
+*/
+
+if ( !function_exists( 'wp_mail' ) ) :
+ function wp_mail() {} // KILL EMAILS IN LOCALHOST
+endif;