Everytime i publish a post, i want to email that post to a specified email address.
The problem is i dont know how to access the content of the post i just published.
function email_content() {
//code for emailing just published post's content
}
add_filter('publish_post', 'email_content');
if anyone can help please let me know how.