in_theme_update_message-<theme_key>
Fires at the end of the update message container in each row of the themes list table.
Description
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.
- // run the action
- do_action( 'in_theme_update_message-{$theme_key}', $theme, $response );
- The following example is for adding a hook callback.
- // define the in_theme_update_message-<theme_key> callback
- function action_in_theme_update_message_theme_key( $theme, $response ) {
- // make action magic happen here...
- };
- // add the action
- 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.
- // remove the action
- 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
- do_action( "in_theme_update_message-{$theme_key}", $theme, $response );