Fires at the end of the update message container in each row of the plugins list table.
Description
The dynamic portion of the hook name, $file, refers to the path of the plugin’s primary file relative to the plugins directory.
Parameters
$plugin_dataarray- An array of plugin metadata. See get_plugin_data() and the 'plugin_row_meta' filter for the list of possible values.
$responseobject- An object of metadata about the available plugin update.
idstringPlugin ID, e.g.w.org/plugins/[plugin-name].slugstringPlugin slug.pluginstringPlugin basename.new_versionstringNew plugin version.urlstringPlugin URL.packagestringPlugin update package URL.iconsstring[]An array of plugin icon URLs.bannersstring[]An array of plugin banner URLs.banners_rtlstring[]An array of plugin RTL banner URLs.requiresstringThe version of WordPress which the plugin requires.testedstringThe version of WordPress the plugin is tested against.requires_phpstringThe version of PHP which the plugin requires.
Source
do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
$responseseems to be an object, not an array here.I used this hook to be able to display an upgrade notice message just after the new version message, like so:
But it seems like
upgrade_noticeisn’t available anymore. This code is still a good way to warn user for important upgrades. :)