W3cubDocs

/WordPress

apply_filters( ‘translations_api’, false|array $result, string $type, object $args )

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

Parameters

$resultfalse|array
The result array. Default false.
$typestring
The type of translations being requested.
$argsobject
Translation API arguments.

Source

$res = apply_filters( 'translations_api', false, $type, $args );

Changelog

Version Description
4.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/translations_api