# wp_get_update_php_annotation()

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

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

## Сигнатура

```php
wp_get_update_php_annotation(): string
```

## Описание

Эту функцию следует использовать после wp_get_update_php_url(), чтобы вернуть единообразную аннотацию, если хостинг-провайдер изменил URL страницы «Обновление PHP» по умолчанию.

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

`string`

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

Файл: `wp-includes/functions.php:8605`

```php
function wp_get_update_php_annotation() {
	$update_url  = wp_get_update_php_url();
	$default_url = wp_get_default_update_php_url();

	if ( $update_url === $default_url ) {
		return '';
	}

	$annotation = sprintf(
		/* translators: %s: Default Update PHP page URL. */
		__( 'This resource is provided by your web host, and is specific to your site. For more information, <a href="%s" target="_blank">see the official WordPress documentation</a>.' ),
		esc_url( $default_url )
	);

	return $annotation;
}
```

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

- 5.2.0 — Introduced.

## Связанные

Использует: [`wp_get_update_php_url`](https://chugunov.pro/api-wordpress/functions/wp_get_update_php_url/), [`wp_get_default_update_php_url`](https://chugunov.pro/api-wordpress/functions/wp_get_default_update_php_url/), [`__`](https://chugunov.pro/api-wordpress/functions/__/), [`esc_url`](https://chugunov.pro/api-wordpress/functions/esc_url/).
Используется в: [`validate_plugin_requirements`](https://chugunov.pro/api-wordpress/functions/validate_plugin_requirements/), [`wp_update_php_annotation`](https://chugunov.pro/api-wordpress/functions/wp_update_php_annotation/), [`update_core`](https://chugunov.pro/api-wordpress/functions/update_core/), [`list_core_update`](https://chugunov.pro/api-wordpress/functions/list_core_update/), [`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_update_php_annotation/
