in_theme_update_message-(theme_key)
Fires at the end of the update message container in each row of the themes list table.
The dynamic portion of the hook name, $theme_key, refers to the theme slug as found in the WordPress.org themes repository.
Usage
add_action( 'in_theme_update_message-(theme_key)', 'wp_kama_in_theme_update_message_key_action', 10, 2 ); /** * Function for `in_theme_update_message-(theme_key)` action-hook. * * @param WP_Theme $theme The WP_Theme object. * @param array $response An array of metadata about the available theme update. * * @return void */ function wp_kama_in_theme_update_message_key_action( $theme, $response ){ // action... }
- $theme(WP_Theme)
- The WP_Theme object.
- $response(array)
An array of metadata about the available theme update.
-
new_version(string)
New theme version. -
url(string)
Theme URL. - package(string)
Theme update package URL.
-
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
in_theme_update_message-(theme_key)
wp-admin/includes/update.php 842
do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores