HTTP/2 302
server: nginx
date: Wed, 31 Dec 2025 20:10:09 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
expires: Wed, 11 Jan 1984 05:00:00 GMT
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/upgrader_post_install/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Wed, 31 Dec 2025 20:10:10 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
upgrader_post_install – Hook | Developer.WordPress.org
apply_filters ( ‘upgrader_post_install’, bool $response , array $hook_extra , array $result )
Filters the installation response after the installation has finished.
$responsebool Installation response.
$hook_extraarray Extra arguments passed to hooked filters.
$resultarray Installation result data.
Version Description 2.8.0 Introduced.
You can use this filter to distinguish between your plugin being installed for the first time or an upgrade over an existing installation. This could be useful in the scenario where you need to publish some admin notices to users on specific version upgrades.
you can then consult your plugin settings to see if this is an updated version.