Had to enhance Email Post Changes 1.7 for a project to also send email for changes of
$post->post_status, like "Draft" to "Published" or "Trash" or similar without other changes in post.
Added detection of changes for taxonomies like Tags, Categories and other custom taxonomies today by adding a
Changes are added to the existing
$text_diffs arrays, so Status, Tags, Categories, ... changes are shown exactly like Title or Content changes in HTML and Plaintext of the Email.
Maybe somebody else wants to use this functionality, so I am sharing it here. To the plugin author(s), feel free to use (parts of) the code in future releases.
Replace the whole file
class.email-post-changes.php with the pastebin code, all changes are marked with
Thanks for the great plugin.
This post makes Post-Status change detection for Email Post Changes 1.7 (which btw. contains a bug) obsolete.