Filters the installation response after the installation has finished.
Parameters
$response
bool- Installation response.
$hook_extra
array- Extra arguments passed to hooked filters.
$result
array- Installation result data.
Source
$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
Changelog
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.