Email Post Changes
Post-Status and Taxonomies change detection for Email Post Changes 1.7 (2 posts)

  1. Ov3rfly
    Posted 2 years ago #

    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 pre_post_update action.

    Changes are added to the existing $html_diffs and $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.

    Pastebin: Post-status & taxonomies detection for Email Post Changes

    Replace the whole file class.email-post-changes.php with the pastebin code, all changes are marked with Ov3rfly.

    Thanks for the great plugin.


    This post makes Post-Status change detection for Email Post Changes 1.7 (which btw. contains a bug) obsolete.

  2. Noumaan Yaqoob
    Posted 2 years ago #

    Thanks for sharing this. It would be nice to see this functionality added into the plugin. Taxonomy changes to a post could go unnoticed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Email Post Changes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic