SitePoint
After all, when you automatically update a plugin, it is deactivated and reactivated, so we could expect this hook to be called. But it’s not the case. To be more precise, it was, but WordPress stopped this behavior in version 3.1. The development team