I’m using SafeCracker to submit posts.
EE v2.2.0
After a post has been submitted I need to retrieve the entry id for the post that was just submitted.
I created an extension using the hook - safecracker_submit_entry_end
the extension is very simple right now. These lines of code are outputting on the screen after a submission.
$member_id = ee()->session->userdata['member_id'];
echo "Member ID: $member_id
";
echo "Entry ID: " . $this->entry_id;The member ID is correct, but there is no value for $this->entry_id
I’m not sure if I’m doing something incorrect, or if the entry id hasn’t been created yet.
Any suggestions on how I can get the entry id greatly appreciated.
Thanks.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.