translations_api_result filter-hook . WP 4.0.0
Filters the Translation Installation API response results.
Usage
add_filter( 'translations_api_result', 'filter_function_name_4308', 10, 3 ); function filter_function_name_4308( $res, $type, $args ){ // filter... return $res; }
- $res(object/WP_Error)
- Response object or WP_Error.
- $type(string)
- The type of translations being requested.
- $args(object)
- Translation API arguments.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
translations_api_result
wp-admin/includes/translation-install.php 109
return apply_filters( 'translations_api_result', $res, $type, $args );