хук-действие
динамический since 3.1.0
in_theme_update_message-{$theme_key}
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
do_action( "in_theme_update_message-{$theme_key}", WP_Theme $theme, array $response )
Описание
Динамическая часть имени хука, $theme_key, указывает на слаг темы в репозитории тем WordPress.org.
Оригинал (английский)
The dynamic portion of the hook name, $theme_key, refers to the theme slug as found in the WordPress.org themes repository.
Динамические части имени
{$theme_key}- Динамическая часть имени хука, $theme_key, указывает на слаг темы в WordPress.
Параметры
$theme
WP_Theme
обязательный
Объект WP_Theme.
$response
array
обязательный
Массив метаданных о доступном обновлении темы.
new_version stringНовая версия темы.
url stringURL темы.
package stringURL пакета обновления темы.
Исходный код
wp-admin/includes/update.php:839
do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
История изменений
| Версия | Описание |
|---|---|
| 3.1.0 | Introduced. |

