Filters the Translation Installation API response results.
Parameters
$res
array|WP_Error- On success an associative array of translations, WP_Error on failure.
translations
arrayList of translations, each an array of data....$0
arraylanguage
stringLanguage code.version
stringWordPress version.updated
stringDate the translation was last updated, in MySQL datetime format.english_name
stringEnglish name of the language.native_name
stringNative name of the language.package
stringURL to download the translation package.iso
string[]Array of ISO language codes.strings
arrayArray of translated strings used in the installation process.
}
$type
stringThe type of translations being requested.$args
objectTranslation API arguments.Source
return apply_filters( 'translations_api_result', $res, $type, $args );
Changelog
Version Description 4.0.0 Introduced.
User Contributed Notes
You must log in before being able to contribute a note or feedback.