Search

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

Fires at the end of the update message container in each row of the plugins list table.

Description 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 Parameters

$plugin_data

(array) An array of plugin metadata.

  • 'name'
    (string) The human-readable name of the plugin.
  • 'plugin_uri'
    (string) Plugin URI.
  • 'version'
    (string) Plugin version.
  • 'description'
    (string) Plugin description.
  • 'author'
    (string) Plugin author.
  • 'author_uri'
    (string) Plugin author URI.
  • 'text_domain'
    (string) Plugin text domain.
  • 'domain_path'
    (string) Relative path to the plugin's .mo file(s).
  • 'network'
    (bool) Whether the plugin can only be activated network wide.
  • 'title'
    (string) The human-readable title of the plugin.
  • 'author_name'
    (string) Plugin author's name.
  • 'update'
    (bool) Whether there's an available update. Default null.

$response

(array) An array of metadata about the available plugin update.

  • 'id'
    (int) Plugin ID.
  • 'slug'
    (string) Plugin slug.
  • 'new_version'
    (string) New plugin version.
  • 'url'
    (string) Plugin URL.
  • 'package'
    (string) Plugin update package URL.


In WordPress theme and development, Hooks are functions that can be applied to an Action or a Filter in WordPress. Actions and Filters in WordPress are functions that can be altered by theme and plugin developers to change the default WordPress functionality.

Functions used to alter Actions/Filters in WordPress can be hooked into WordPress. In any case, note that actions and filters are not some thing very similar. Actions are functions performed when a specific occasion happens in WordPress. Filters enable you to change certain functions. Arguments used to hook the two filters and actions appear to be identical. Be that as it may, they are different in functionality and how they carry on.