# translations_api_result

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

Тип: хук-фильтр.
Появился в версии: 4.0.0.

## Сигнатура

```php
apply_filters( 'translations_api_result', array|WP_Error $res, string $type, object $args )
```

## Описание

Фильтрует результаты ответа API установки переводов.

## Параметры

- `$res` `array|WP_Error` — обязательный. On success an associative array of translations, [WP_Error](https://developer.wordpress.org/reference/classes/wp_error/) on failure.
  
  - `translations` array List of translations, each an array of data.
  
  - `...$0` array
  
  - `language` string Language code.
  
  - `version` string WordPress version.
  
  - `updated` string Date the translation was last updated, in MySQL datetime format.
  
  - `english_name` string English name of the language.
  
  - `native_name` string Native name of the language.
  
  - `package` string URL to download the translation package.
  
  - `iso` string[] Array of ISO language codes.
  
  - `strings` array Array of translated strings used in the installation process.
  
  }
  
  `$type`string The type of translations being requested. `$args`object Translation API arguments.
  
  [Source](#source)
  
  ```
  return apply_filters( 'translations_api_result', $res, $type, $args );
  ```
  
  [View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/translation-install.php/) [View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/translation-install.php#L141) [View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/translation-install.php#L141-L141)
  
  [Related](#related) Used by | Description |
  [translations_api()](https://developer.wordpress.org/reference/functions/translations_api/)`wp-admin/includes/translation-install.php` | Retrieve translations from WordPress Translation API.
  |
  
  [Changelog](#changelog) Version | Description |
  [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |
  
  User Contributed Notes You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ftranslations_api_result%2F) before being able to contribute a note or feedback.

## Фильтруемое значение

On success an associative array of translations, [WP_Error](https://developer.wordpress.org/reference/classes/wp_error/) on failure.

- `translations` array List of translations, each an array of data.

- `...$0` array

- `language` string Language code.

- `version` string WordPress version.

- `updated` string Date the translation was last updated, in MySQL datetime format.

- `english_name` string English name of the language.

- `native_name` string Native name of the language.

- `package` string URL to download the translation package.

- `iso` string[] Array of ISO language codes.

- `strings` array Array of translated strings used in the installation process.

}

`$type`string The type of translations being requested. `$args`object Translation API arguments.

[Source](#source)

```
return apply_filters( 'translations_api_result', $res, $type, $args );
```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/translation-install.php/) [View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/translation-install.php#L141) [View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/translation-install.php#L141-L141)

[Related](#related) Used by | Description |
[translations_api()](https://developer.wordpress.org/reference/functions/translations_api/)`wp-admin/includes/translation-install.php` | Retrieve translations from WordPress Translation API.
|

[Changelog](#changelog) Version | Description |
[4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

User Contributed Notes You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ftranslations_api_result%2F) before being able to contribute a note or feedback.

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

Файл: `wp-admin/includes/translation-install.php:141`

```php
return apply_filters( 'translations_api_result', $res, $type, $args );
```

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

- 4.0.0 — Introduced.

## Связанные

Используется в: [`translations_api`](https://chugunov.pro/api-wordpress/functions/translations_api/).

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