-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from Xieyt/master
feat: block emails
- Loading branch information
Showing
4 changed files
with
108 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Block Emails | ||
* Description: Blocks sending of emails when using wp_mail function to send emails. | ||
* Author: rtCamp | ||
* Author URI: https://rtcamp.com | ||
* License: GPL2 | ||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
* Version: 1.0 | ||
*/ | ||
|
||
// Comment this code if you don't want to disable emails altogether. | ||
if ( ! function_exists( 'wp_mail' ) ) { | ||
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) { | ||
return true; | ||
} | ||
} | ||
?> |
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
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
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