Approval Workflow
Needs to detect Newly Created Items (or) existing Item Updating ? (2 posts)

  1. 4lvin
    Posted 2 years ago #

    In latest WordPress & Approval Workflow, i want to customize some "Approval Workflow" operation to do something upon ONLY NEWLY CREATED items (posts/pages).

    But in that module, i can't find a way because that Workflow State is falling ONLY AFTER the item is saved. So there is currently no way i found to differentiate if the item is brand new created one or updating the existing.

    • My major point is TO TRIGGER the Mail Notifications ONLY FOR the Newly Created Ones (New Arrivals). I don't need email alerts for the existing item updatings.

    There is already a following trigger in it (in approval-workflow.php).
    But it is actually not useful.

    // Is this a new post
    if(count($revisions) <= 1 || empty($last_revision) || empty($last_revision->post_content)){
    $is_new = true;

    • So how can i detect if a created item is really a newly one (or) updating the existed one?


  2. ericjuden
    Plugin Author

    Posted 2 years ago #

    Hey 4lvin,

    Thanks for the feature request. I'll see about getting this in there.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Approval Workflow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic