wpseek.com
WordPress开发者和主题制作者的搜索引擎



translations_api_result › WordPress过滤钩子

Since4.0.0
已弃用n/a
› apply_filters( 'translations_api_result', $res, $type, $args )
参数: (3)
  • () 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
  • () type The type of translations being requested.
    Required: Yes
  • () args Translation API arguments.
    Required: Yes
定义在:
文档:

Filters the Translation Installation API response results.





源码

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