Hi!
I need to get the id for a record being saved in a plugin. I’m assuming I’d do this in the after_save
hook, but maybe there’s another preferred way?
protected function afterSave($post, $insert){
if($insert){
// how do I get the object for record being saved?
}
}
Thanks – E