[wp-hackers] sending mail wnen post author changes
hannit at codeart.co.il
Sun Mar 4 10:03:52 UTC 2012
I need to send a notification email whenever the post author changes.
One way I thought of is saving the current author in a custom field on
pre_post_update and then checking for change on post_save.
I was wondering if there is a better more elegant way.
I know that pre_post_update is fired in the right time for me to check, but
as far as I see, it gets the post_id but not the new post data.
Any Idea ?
More information about the wp-hackers