in_plugin_update_message-{$file} WordPress Action Hook

The in_plugin_update_message-{$file} hook is used to display a message when a plugin is updated.

do_action( "in_plugin_update_message-{$file}", array $plugin_data, object $response ) #

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.


Top ↑

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'
    (string) Plugin ID, e.g. w.org/plugins/[plugin-name].
  • 'slug'
    (string) Plugin slug.
  • 'plugin'
    (string) Plugin basename.
  • 'new_version'
    (string) New plugin version.
  • 'url'
    (string) Plugin URL.
  • 'package'
    (string) Plugin 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'
    (string) The version of WordPress which the plugin requires.
  • 'tested'
    (string) The version of WordPress the plugin is tested against.
  • 'requires_php'
    (string) The version of PHP which the plugin requires.


Top ↑

Source

File: wp-admin/includes/update.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.