in_theme_update_message-(theme_key) хук-событиеWP 3.1.0

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.

Использование

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(массив)

An array of metadata about the available theme update.

  • new_version(строка)
    New theme version.

  • url(строка)
    Theme URL.

  • package(строка)
    Theme update package URL.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

wp_theme_update_row()
in_theme_update_message-(theme_key)
wp-admin/includes/update.php 841
do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Где используется хук в WordPress

Использование не найдено.