Skip to content

Instantly share code, notes, and snippets.

@r-a-y
Created February 13, 2014 00:12
Show Gist options
  • Save r-a-y/8967238 to your computer and use it in GitHub Desktop.
Save r-a-y/8967238 to your computer and use it in GitHub Desktop.
Disables all email from being sent on a WordPress install.
<?php
/*
Plugin Name: Disable Email
Description: Disables all email from being sent.
Author: r-a-y
Version: 0.1
*/
if( ! function_exists( 'wp_mail' ) ) :
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) {
return false;
}
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment