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.
Source
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |