in_plugin_update_message-<file>

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

Description

do_action( 'in_plugin_update_message-<file>', (array) $plugin_data, (array) $response ); 

The dynamic portion(s) of the hook name refer to the path of the plugin's primary file relative to the plugins directory.

Parameters (2)

0. $plugin_data (array)
1. $response (array)

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'in_plugin_update_message-{$file}', $plugin_data, $response ); 
The following example is for adding a hook callback.
  1. // define the in_plugin_update_message-<file> callback 
  2. function action_in_plugin_update_message_file( $plugin_data, $response ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "in_plugin_update_message-{$file}", 'action_in_plugin_update_message_file', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "in_plugin_update_message-{$file}", 'action_in_plugin_update_message_file', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/wp-admin/includes/update.php  
  1. do_action( "in_plugin_update_message-{$file}", $plugin_data, $response );