translations_api_result WordPress Filter Hook

The translations_api_result hook is called when the WordPress Translations API returns a response. It is used to modify the response before it is passed back to the caller.

apply_filters( 'translations_api_result', array|WP_Error $res, string $type, object $args ) #

Filters the Translation Installation API response results.


Parameters

$res

(array|WP_Error)Response as an associative array or WP_Error.

$type

(string)The type of translations being requested.

$args

(object)Translation API arguments.


Top ↑

Source

File: wp-admin/includes/translation-install.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.