translations_api_result
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'translations_api_result', array|WP_Error $res, string $type, object $args )
Описание
Фильтрует результаты ответа API установки переводов.
Фильтруемое значение
translationsarray List of translations, each an array of data....$0arraylanguagestringLanguage code.versionstringWordPress version.updatedstringDate the translation was last updated, in MySQL datetime format.english_namestringEnglish name of the language.native_namestringNative name of the language.packagestringURL to download the translation package.isostring[]Array of ISO language codes.stringsarrayArray of translated strings used in the installation process.
}
$typestringThe type of translations being requested.$argsobjectTranslation API arguments. Sourcereturn apply_filters( 'translations_api_result', $res, $type, $args );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description translations_api() wp-admin/includes/translation-install.phpRetrieve translations from WordPress Translation API.
Version Description 4.0.0 Introduced.
You must log in before being able to contribute a note or feedback.
Параметры
$res
array|WP_Error
обязательный
translationsarray List of translations, each an array of data....$0arraylanguagestringLanguage code.versionstringWordPress version.updatedstringDate the translation was last updated, in MySQL datetime format.english_namestringEnglish name of the language.native_namestringNative name of the language.packagestringURL to download the translation package.isostring[]Array of ISO language codes.stringsarrayArray of translated strings used in the installation process.
}
$typestringThe type of translations being requested.$argsobjectTranslation API arguments. Sourcereturn apply_filters( 'translations_api_result', $res, $type, $args );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description translations_api() wp-admin/includes/translation-install.phpRetrieve translations from WordPress Translation API.
Version Description 4.0.0 Introduced.
You must log in before being able to contribute a note or feedback.
Исходный код
wp-admin/includes/translation-install.php:141
return apply_filters( 'translations_api_result', $res, $type, $args );
История изменений
| Версия | Описание |
|---|---|
| 4.0.0 | Introduced. |

