translations_api_result хук-фильтр . WP 4.0.0
Filters the Translation Installation API response results.
Использование
add_filter( 'translations_api_result', 'filter_function_name_5569', 10, 3 ); function filter_function_name_5569( $res, $type, $args ){ // filter... return $res; }
- $res(объект/WP_Error)
- Response object or WP_Error.
- $type(строка)
- The type of translations being requested.
- $args(объект)
- Translation API arguments.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
translations_api_result
wp-admin/includes/translation-install.php 108
return apply_filters( 'translations_api_result', $res, $type, $args );