Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created June 22, 2015 10:18
Show Gist options
  • Save thefuxia/1f4e5950bb032992ff0f to your computer and use it in GitHub Desktop.
Save thefuxia/1f4e5950bb032992ff0f to your computer and use it in GitHub Desktop.
Replace the pluggable function wp_mail() with a dummy.
<?php
// Plugin Name: Mock wp_mail()
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment