in_theme_update_message-{$theme_key} WordPress Action Hook

The in_theme_update_message-{$theme_key} hook is used to display a message in the WordPress admin when a theme is updated.

do_action( "in_theme_update_message-{$theme_key}", WP_Theme $theme, array $response ) #

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


Description

The dynamic portion of the hook name, $theme_key, refers to the theme slug as found in the WordPress.org themes repository.


Top ↑

Parameters

$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.


Top ↑

Source

File: wp-admin/includes/update.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.