WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. 4lvin
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/approval-workflow/

  2. ericjuden
    Member
    Plugin Author

    Posted 1 year ago #

    Hey 4lvin,

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

    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic