[wp-hackers] Customize Wordpress Emails
Mohammad Jangda
batmoo at gmail.com
Thu Dec 9 15:02:54 UTC 2010
On Thu, Dec 9, 2010 at 9:35 AM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> Is their an email hook that I can juse to see when an email is being
> sent then block it and send my own?
>
Most (not all) emails sent by WordPress either have filters you can use
(like Paul mentions) or are pluggable, so you can create your own versions,
e.g.
if ( ! function_exists('wp_notify_postauthor') ) :
function wp_notify_postauthor ( $comment_id, $comment_type='' ) {
// do stuff...
// ...then call wp_mail
}
endif;
If you want to be super cool, you could just use my HTML Emails plugins:
http://wordpress.org/extend/plugins/html-emails/ ;)
More information about the wp-hackers
mailing list