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_data
array- An array of plugin metadata. See get_plugin_data() and the 'plugin_row_meta' filter for the list of possible values.
$response
object- An object of metadata about the available plugin update.
id
stringPlugin ID, e.g.w.org/plugins/[plugin-name]
.slug
stringPlugin slug.plugin
stringPlugin basename.new_version
stringNew plugin version.url
stringPlugin URL.package
stringPlugin update package URL.icons
string[]An array of plugin icon URLs.banners
string[]An array of plugin banner URLs.banners_rtl
string[]An array of plugin RTL banner URLs.requires
stringThe version of WordPress which the plugin requires.tested
stringThe version of WordPress the plugin is tested against.requires_php
stringThe 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. |
$response
seems 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_notice
isn’t available anymore. This code is still a good way to warn user for important upgrades. :)