translations_api WordPress Filter Hook

The translations_api hook is used to retrieve translated strings from the WordPress.org Translation Server. It is called when the WordPress core is updated, when a plugin or theme is updated, or when a user installs a new plugin or theme.

apply_filters( 'translations_api', false|array $result, string $type, object $args ) #

Allows a plugin to override the WordPress.org Translation Installation API entirely.


Parameters

$result

(false|array)The result array. Default false.

$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.