[Plugin: Approval Workflow] Needs to detect Newly Created Items (or) existing Item Updating ?
-
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?
https://www.ads-software.com/extend/plugins/approval-workflow/
- The topic ‘[Plugin: Approval Workflow] Needs to detect Newly Created Items (or) existing Item Updating ?’ is closed to new replies.