in_theme_update_message-<theme_key>

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

Description

do_action( 'in_theme_update_message-<theme_key>', (WP_Theme) $theme, (array) $response ); 

The dynamic portion(s) of the hook name refer to the theme slug as found in the WordPress.org themes repository.

Parameters (2)

0. $theme (WP_Theme)
The WP_Theme object.
1. $response (array)

Usage

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

Defined (1)

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

/wp-admin/includes/update.php  
  1. do_action( "in_theme_update_message-{$theme_key}", $theme, $response );