Post-Status 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 similar without other changes in post.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 change detection for Email Post Changes 1.7
In file
class.email-post-changes.php
replace the currentfunction post_updated(..)
with the new code-block from Pastebin.All changes are marked with
Ov3rfly
.Note: The new code-block also contains a new
function nice_post_status(..)
which goes right afterfunction post_updated(..)
Thanks for the great plugin.
- The topic ‘Post-Status change detection for Email Post Changes 1.7’ is closed to new replies.