WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ov3rfly
    Member
    Posted 8 months 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.

    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.

  2. Noumaan Yaqoob
    Member
    Posted 7 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic