I found this previous post to automatically notify the admin when a post or page is published:
Alert Email when any Post or Page is Changed
Works like a charm, thanks! However, it looks like the page has to be changed from draft or pending to published to trigger the action. Is there a modification to notify the admin when an already published page is updated?
thanks!
You can register TheDeadMedic’s function to fire on the
save_post
action, which runs every time a post is saved, regardless of whether or not the status changed.Then, comment out these lines in his function:
To prevent getting an e-mail for autosaves, add this code to the top of the function:
Here’s the fully merged code:
You’re right .. many of the notification plugins require a change of state and don’t actually track if there is a new ‘revision’ to a post or page.
Recently WPMU did a long story on plugins that will track activity and you might find it helpful as it identifies a few plugins …
http://wpmu.org/wordpress-activity-log/
@IanDunn’s answer should work but I haven’t tested it. However the structure for
save_post
callbacks is different fromtransition_post_status
. The WordPress codex save_post page has its own code for save notifications: