user7698642
user7698642

Reputation:

Override WordPress wp_mail function

I know there is a filter for wp_mail, but I don't want to only change arguments. I'm trying to reimplement wp_mail with a custom RESTful API, so I need to change the functionality of wp_mail. How can I do that?! Thanks.

Upvotes: 0

Views: 1438

Answers (1)

Mike
Mike

Reputation: 184

Just declare your function again in theme's functions.php.

function wp_mail(){
    echo 'TEST';
}

Upvotes: 1

Related Questions