wpseek.com
A WordPress-centric search engine for devs and theme authors



translations_api_result › WordPress Filter Hooks

Since4.0.0
Deprecatedn/a
apply_filters( 'translations_api_result', $res, $type, $args )
Parameters: (3)
  • (array|WP_Error) $res { On success an associative array of translations, WP_Error on failure. @type array $translations { List of translations, each an array of data. @type array ...$0 { @type string $language Language code. @type string $version WordPress version. @type string $updated Date the translation was last updated, in MySQL datetime format. @type string $english_name English name of the language. @type string $native_name Native name of the language. @type string $package URL to download the translation package. @type string[] $iso Array of ISO language codes. @type array $strings Array of translated strings used in the installation process. } } }
    Required: Yes
  • (string) $type The type of translations being requested.
    Required: Yes
  • (object) $args Translation API arguments.
    Required: Yes
Defined at:
Codex:

Filters the Translation Installation API response results.





Source

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