# wp_get_auto_update_message()

URL: https://chugunov.pro/api-wordpress/functions/wp_get_auto_update_message/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 5.5.0.

## Сигнатура

```php
wp_get_auto_update_message(): string
```

## Описание

Определяет подходящее сообщение об автообновлении для отображения.

## Возвращаемое значение

`string`

## Исходный код

Файл: `wp-admin/includes/update.php:1099`

```php
function wp_get_auto_update_message() {
	$next_update_time = wp_next_scheduled( 'wp_version_check' );

	// Check if the event exists.
	if ( false === $next_update_time ) {
		$message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' );
	} else {
		$time_to_next_update = human_time_diff( (int) $next_update_time );

		// See if cron is overdue.
		$overdue = ( time() - $next_update_time ) > 0;

		if ( $overdue ) {
			$message = sprintf(
				/* translators: %s: Duration that WP-Cron has been overdue. */
				__( 'Automatic update overdue by %s. There may be a problem with WP-Cron.' ),
				$time_to_next_update
			);
		} else {
			$message = sprintf(
				/* translators: %s: Time until the next update. */
				__( 'Automatic update scheduled in %s.' ),
				$time_to_next_update
			);
		}
	}

	return $message;
}
```

## История изменений

- 5.5.0 — Introduced.

## Связанные

Использует: [`wp_next_scheduled`](https://chugunov.pro/api-wordpress/functions/wp_next_scheduled/), [`human_time_diff`](https://chugunov.pro/api-wordpress/functions/human_time_diff/), [`__`](https://chugunov.pro/api-wordpress/functions/__/).
Используется в: [`core_auto_updates_settings`](https://chugunov.pro/api-wordpress/functions/core_auto_updates_settings/), `WP_MS_Themes_List_Table::column_autoupdates`, [`wp_theme_auto_update_setting_template`](https://chugunov.pro/api-wordpress/functions/wp_theme_auto_update_setting_template/), `WP_Plugins_List_Table::single_row`, [`list_plugin_updates`](https://chugunov.pro/api-wordpress/functions/list_plugin_updates/), [`list_theme_updates`](https://chugunov.pro/api-wordpress/functions/list_theme_updates/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/wp_get_auto_update_message/
