upgrader_post_install
has three parameters $response
, $hook_extra
and $result
which give you extra information. At the moment I can’t take a look myself, but I’m assuming that especially the $result
variable should give you additional information to differentiate.