Action hook 'in_theme_update_message-{$theme_key}'

in WP Core File wp-admin/includes/update.php at line 839

View Source

in_theme_update_message-{$theme_key}

Action Hook
Description
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. }

Hook Information

File Location wp-admin/includes/update.php View on GitHub
Hook Type Action
Line Number 839

Hook Parameters

Type Name Description
WP_Theme $theme The WP_Theme object.
array $response { An array of metadata about the available theme update.

Usage Examples

Basic Usage
<?php
// Hook into in_theme_update_message-{$theme_key}
add_action('in_theme_update_message-{$theme_key}', 'my_custom_function', 10, 2);

function my_custom_function($theme, $response) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/update.php:839 - How this hook is used in WordPress core
<?php
 834  	 *     @type string $new_version New theme version.
 835  	 *     @type string $url         Theme URL.
 836  	 *     @type string $package     Theme update package URL.
 837  	 * }
 838  	 */
 839  	do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 840  
 841  	echo '</p></div></td></tr>';
 842  }
 843  
 844  /**

PHP Documentation

<?php
/**
	 * 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.
	 *
	 * @since 3.1.0
	 *
	 * @param WP_Theme $theme    The WP_Theme object.
	 * @param array    $response {
	 *     An array of metadata about the available theme update.
	 *
	 *     @type string $new_version New theme version.
	 *     @type string $url         Theme URL.
	 *     @type string $package     Theme update package URL.
	 * }
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/update.php
Related Hooks

Related hooks will be displayed here in future updates.