Support » Plugin: Email Post Changes » Post-Status and Taxonomies change detection for Email Post Changes 1.7

  • 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.

    http://wordpress.org/plugins/email-post-changes/

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

Viewing 1 replies (of 1 total)
  • Thanks for sharing this. It would be nice to see this functionality added into the plugin. Taxonomy changes to a post could go unnoticed.

Viewing 1 replies (of 1 total)
  • The topic ‘Post-Status and Taxonomies change detection for Email Post Changes 1.7’ is closed to new replies.