do_action( "in_plugin_update_message-{$file}", array $plugin_data, object $response )
- Since
- 2.8.0
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.
Compatibility
- WordPress
- since 2.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
@type string $id Plugin ID, e.g.w.org/plugins/[plugin-name].
@type string $slug Plugin slug.
@type string $plugin Plugin basename.
@type string $new_version New plugin version.
@type string $url Plugin URL.
@type string $package Plugin update package URL.
@type string[] $icons An array of plugin icon URLs.
@type string[] $banners An array of plugin banner URLs.
@type string[] $banners_rtl An array of plugin RTL banner URLs.
@type string $requires The version of WordPress which the plugin requires.
@type string $tested The version of WordPress the plugin is tested against.
@type string $requires_php The version of PHP which the plugin requires.
}$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.
Where this hook fires · 1
wp-admin/includes/update.php:614wp_plugin_update_row()
Source code
* @type string[] $banners_rtl An array of plugin RTL banner URLs. * @type string $requires The version of WordPress which the plugin requires. * @type string $tested The version of WordPress the plugin is tested against. * @type string $requires_php The version of PHP which the plugin requires. * } */ do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores echo '</p></div></td></tr>'; }} /**Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.