title: Override WordPress wp_mail function
body: <p>I know there is a filter for <code>wp_mail</code>, but I don't want to only change arguments. I'm trying to reimplement <code>wp_mail</code> with a custom RESTful API, so I need to change the functionality of <code>wp_mail</code>.
  How can I do that?!
  Thanks.</p>