I’m not sure if an entry_id is populated before the “entry_submission_absolute_end” hook. But, if you use the “entry_submission_ready” hook, you’ll notice that entry_id is an empty string when creating a new entry - so that is one way to differentiate between creating and editing.
In case anyone needs the solution: you need to check $this->data array passed by “entry_submission_absolute_end” hook For existing enries, $this->data[‘entry_id’] contains proper entry_id, for new entries it’s zero So simply do simething like
if ($data['entry_id']!=0)
{
return false;//this is existing entry
}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.